Init
This commit is contained in:
11
cs420-acc/l3-warmup/library/functions.l3
Normal file
11
cs420-acc/l3-warmup/library/functions.l3
Normal file
@@ -0,0 +1,11 @@
|
||||
;; In Emacs, open this file in -*- Scheme -*- mode.
|
||||
|
||||
;; Functions
|
||||
|
||||
(def function?
|
||||
(fun (o)
|
||||
(and (@block? o) (@= 202 (@block-tag o)))))
|
||||
|
||||
(def function-compose
|
||||
(fun (f g)
|
||||
(fun (x) (f (g x)))))
|
Reference in New Issue
Block a user