Clarify closure in loop test.
(assert (not= 0 1 1) "not= 2")
# Closure in while loop
-(def closures @[])
-(loop [i :range [0 5]]
- (array.push closures (fn [] i)))
+(def closures (for [i :range [0 5]] (fn [] i)))
(assert (= 0 ((get closures 0))) "closure in loop 0")
(assert (= 1 ((get closures 1))) "closure in loop 1")
(assert (= 2 ((get closures 2))) "closure in loop 2")
