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