clojure-koans/src/koans/partial_functions.clj

10 lines
253 B
Clojure
Raw Normal View History

2010-07-12 23:06:19 +00:00
(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 [__ __]))))