adding blank function (multi-argument)
This commit is contained in:
parent
b5885e8867
commit
88544175c0
2 changed files with 3 additions and 2 deletions
|
|
@ -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 a new issue