mirror of
https://github.com/peklaiho/madlisp.git
synced 2024-11-22 13:24:46 +00:00
macro for using λ instead of fn for lambdas
This commit is contained in:
parent
170b8d424f
commit
bf726a1b5e
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user