Created
January 26, 2010 08:29
-
-
Save gerardpaapu/286671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function plus(a, b) { return a + b; } | |
Seq.iter(1, curry(plus, 1)) | |
// the series of all positive integers | |
Seq.iter(1, 1, plus) // the fibonacci series | |
Seq.repeat(1) // 1, 1, 1, 1, ... | |
Seq.cycle(1, 2, 3) // 1, 2, 3, 1, 2, 3, 1, 2, ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment