Pauan

SJS new Stream

Oct 5th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var stream_toString = function() {
  2.   return "[object Stream]";
  3. };
  4. var Stream = function(S) {
  5.   var o = {}
  6.   o.toString = stream_toString
  7.   o[exports.sym_each] = function (sequence, r) {
  8.     return S(r)
  9.   }
  10.   return o
  11. }
  12. exports.Stream = Stream;
Add Comment
Please, Sign In to add comment