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

Some simple and general higher-order functions
(define (flip f)
  (lambda (x y)
    (f y x)))
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