Skip to content

Instantly share code, notes, and snippets.

@yelouafi
Created July 17, 2015 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yelouafi/5590a6ecfe636b1cad71 to your computer and use it in GitHub Desktop.
Save yelouafi/5590a6ecfe636b1cad71 to your computer and use it in GitHub Desktop.
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