Created
July 17, 2015 01:40
-
-
Save yelouafi/5590a6ecfe636b1cad71 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
function Stream() {} | |
adt( Stream, { | |
Empty : new Stream(), | |
Abort : function (error) { return {error} }, | |
Promise : function (promise) { return {promise} }, | |
Cons : function (head, tail) { return {head, tail} } | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment