3 ms·
(define compose (f g) (lambda (x) (f (g x)))) What if f is a function of n-arity (define compose (f g) (lambda (x) (f . (g x)))) If g is n-arity (define
by maxbaroi 14y ago
(define compose (f g)
(lambda (x) (f (g x))))
What if f is a function of n-arity
(define compose (f g)
(lambda (x) (f . (g x))))
If g is n-arity
(define compose (f g)
(lambda (x) (f (g . x))))
I gave them all the same name because naming things is hard.