Use identity
This commit is contained in:
parent
f8b97ede65
commit
951a43ccd7
1 changed files with 1 additions and 1 deletions
|
|
@ -25,4 +25,4 @@
|
||||||
|
|
||||||
"Iteration can be used for repetition"
|
"Iteration can be used for repetition"
|
||||||
(= (repeat 100 "hello")
|
(= (repeat 100 "hello")
|
||||||
(take 100 (iterate (fn [x] x) "hello"))))
|
(take 100 (iterate identity "hello"))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue