RosettaCodeData/Task/Function-composition/NewLISP/function-composition.newlisp
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

4 lines
147 B
Text

> (define (compose f g) (expand (lambda (x) (f (g x))) 'f 'g))
(lambda (f g) (expand (lambda (x) (f (g x))) 'f 'g))
> ((compose sin asin) 0.5)
0.5