macro for using λ instead of fn for lambdas

This commit is contained in:
Pekka Laiho 2020-12-15 22:07:12 +07:00
parent 170b8d424f
commit bf726a1b5e

View File

@ -1,2 +1,5 @@
;; Measure how long it takes to execute f
(defn timeFn (f) (let (st (mtime)) (f) (- (mtime) st)))
;; Allow λ instead of fn for lambda
(defmacro λ (args body) (quasiquote (fn (unquote args) (unquote body))))