adding blank function (multi-argument)
This commit is contained in:
parent
b5885e8867
commit
88544175c0
@ -17,5 +17,5 @@
|
||||
4 5))
|
||||
|
||||
"Higher-order functions take function arguments"
|
||||
(= 25 ((fn [f] (f 5))
|
||||
(fn [n] (__ __ __)))))
|
||||
(= 25 (___
|
||||
(fn [n] (* n n)))))
|
||||
|
@ -2,6 +2,7 @@
|
||||
(:use clojure.test))
|
||||
|
||||
(def __ nil)
|
||||
(def ___ (fn [& args] args))
|
||||
|
||||
(defmacro meditations [& forms]
|
||||
(let [pairs (partition 2 forms)]
|
||||
|
Loading…
Reference in New Issue
Block a user