Stop show with sound -- Keyboard shortcut: 'x'  Next slide in show -- Keyboard shortcut: 'n'  1 minute, 24 secondsHigher-order Functions - slide 3 : 34

Some simple and general higher-order functions
(define (flip f)
  (lambda (x y)
    (f y x)))
flip-alternative.scm
An alternative formulation of flip without use of the sugared define syntax.
(define (negate p)
  (lambda (x) 
    (if (p x) #f #t)))
(define (compose f g)
  (lambda (x)
    (f (g x))))
 

Go to exercise
Using flip, negate, and compose