6 ms·
I think you need laziness to be a little more prevalent than that before it makes a difference. Haskell's super-concise Fibonacci sequence illustrates that:
by uninverted 17y ago
I think you need laziness to be a little more prevalent than that before it makes a difference. Haskell's super-concise Fibonacci sequence illustrates that:
let fib = 1 : 1 : zipWith (+) fib (tail fib)
- cunningjames 17y agoYou may need to reevaluate what's possible in Clojure. (def fib (lazy-cat [1 1] (map + fib (rest fib))))
- uninverted 17y ago...Man, Clojure seems to have just about everything from every language ever.