News for hackers. Stuff that matters.
Re:Why Haskell Is Worth Learning by maxbaroi on Tuesday March 05, 2013 @02:04PM (#5326578)
(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.

There are no comments on this comment yet.