Merge pull request #50 from marshallshen/master
add one more problem in function exercise
This commit is contained in:
commit
6adbead02c
@ -61,7 +61,8 @@
|
|||||||
20
|
20
|
||||||
10
|
10
|
||||||
60
|
60
|
||||||
15]
|
15
|
||||||
|
30]
|
||||||
"___" [+
|
"___" [+
|
||||||
*
|
*
|
||||||
(fn [f] (f 5))
|
(fn [f] (f 5))
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
"Even anonymous functions may take multiple arguments"
|
"Even anonymous functions may take multiple arguments"
|
||||||
(= __ (#(+ %1 %2 %3) 4 5 6))
|
(= __ (#(+ %1 %2 %3) 4 5 6))
|
||||||
|
|
||||||
|
"Arguments can also be skipped"
|
||||||
|
(= __ (#(* 15 %2) 1 2))
|
||||||
|
|
||||||
"One function can beget another"
|
"One function can beget another"
|
||||||
(= 9 (((fn [] ___)) 4 5))
|
(= 9 (((fn [] ___)) 4 5))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user