203 people like it.
Like the snippet!
Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.
1: 2: 3: |
|
Link: | http://fssnip.net/18 |
Posted: | 13 years ago |
Author: | Nick Palladinos |
Tags: | haskell functions , seq |