Search This Blog

Thursday, October 1, 2009

It's lazy, lazy, very very lazy

From Jason Wolfe's excellent blog:
http://w01fe.com/blog/2009/01/pleasant-surprise-clojures-apply-is-lazy/
 
The snippet:  (apply distinct? (interleave (iterate inc 0) (iterate inc 10))) 

As he says: Sweet!

No comments:

Post a Comment

Followers