Name: Anonymous 2007-06-19 14:08 ID:sxIr1ztw
how do I compose in haskell two functions when one of the two functions requires more than one parameter?
What I want to do is something like this*:
(defun compose (f g)
(lambda (&rest x)
(funcall f (apply g x))))
but the . operator in haskell doesn't work if I want to compose, say, not and >
*or, for the scheme crowd out there
(define (compose f g)
(lambda x (f (apply g x))))
What I want to do is something like this*:
(defun compose (f g)
(lambda (&rest x)
(funcall f (apply g x))))
but the . operator in haskell doesn't work if I want to compose, say, not and >
*or, for the scheme crowd out there
(define (compose f g)
(lambda x (f (apply g x))))