6 lines
109 B
Text
6 lines
109 B
Text
|
|
(defun compose (f g)
|
||
|
|
`(lambda (x) (,f (,g x))))
|
||
|
|
|
||
|
|
(let ((func (compose '1+ '1+)))
|
||
|
|
(funcall func 5)) ;=> 7
|