partial functions added

This commit is contained in:
Colin Jones
2010-07-12 18:06:19 -05:00
parent 7a6067422d
commit 75c78b94e6
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
(meditations
"Partial functions allow procrastination"
(= 20 (let [multiply-by-5 (partial * 5)]
(___ __)))
"Don't forget: first things first"
(= [__ __ __ __]
(let [ab-adder (partial concat [:a :b])]
(ab-adder [__ __]))))