RosettaCodeData/Task/Function-composition/Racket/function-composition.rkt

3 lines
48 B
Racket

(define (compose f g)
(lambda (x) (f (g x))))