Use identity

This commit is contained in:
Kenneth Kostresevic 2021-12-16 16:20:08 +01:00
parent f8b97ede65
commit 951a43ccd7

View file

@ -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"))))