September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -3,3 +3,12 @@
|
|||
;; or:
|
||||
|
||||
(define ((compose f g) x) (f (g x)))
|
||||
|
||||
;; or to compose an arbitrary list of 1 argument functions:
|
||||
|
||||
(define-syntax compose
|
||||
(lambda (x)
|
||||
(syntax-case x ()
|
||||
((_) #'(lambda (y) y))
|
||||
((_ f) #'f)
|
||||
((_ f g h ...) #'(lambda (y) (f ((compose g h ...) y)))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue