Lazy Infinite list of numbers starting with 1:
Haskell:
[1..]
Clojure:
(iterate inc 1)
Lazy list of numbers from 1 to 109:
Haskell:
[1..109]
Clojure:
(range 1 110)
Advertisement
Like this:
Be the first to like this post.
This entry was posted on April 10, 2009 at 2:06 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.