Created
July 17, 2015 02:08
-
-
Save yelouafi/d2b08f03155f7c880fa2 to your computer and use it in GitHub Desktop.
This file contains 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
// length : Stream a -> Promise Number | |
Stream.prototype.length = function() { | |
return this.reduce( (n, _) => n + 1, 0 ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment