Skip to content

Instantly share code, notes, and snippets.

@yelouafi
Created July 17, 2015 02:44
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/156042ee3bcf465cce68 to your computer and use it in GitHub Desktop.
Save yelouafi/156042ee3bcf465cce68 to your computer and use it in GitHub Desktop.
// mergeAll : Stream (Stream a) -> Stream a
Stream.prototype.mergeAll = function() {
return this.flatten( (s1, s2) => s1.merge(s2) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment