Open antonvolkoff opened 9 years ago
For some reason when function executes for the second time it stays with a previous values which were passed.
slang > (set sum (fn [x y] (+ x y)))) function slang > (sum 1 1) 2 slang > (sum 2 2) 2
I have found a root of a problem.
After first execution following construction turns into:
(set sum (fn [x y] (+ 1 1))))
For some reason when function executes for the second time it stays with a previous values which were passed.