Fork me on GitHub
#cherry
<
2023-03-31
>
borkdude09:03:28

Optimized the zero? check so this example is now super fast 😆

$ node out/eval.js -e '(time (print (loop [i 0 j 10000000] (if (zero? j) i (recur (inc i) (dec j))))))'
10000000
"Elapsed time: 8.812375 msecs"

😀 2
💨 4