News for hackers. Stuff that matters.
Re:Introducing a new data structure, streams, in Javascript by buddydvd on Sunday September 11, 2011 @06:07PM (#2985011)
It's not required, but you'd have to write your own generator function:

    Enumerable
      .Generate((function() {
        var i = 0;
        return function() {
          return i++;
        };
      })())
      .Take(10)
      .ToArray()
Output:

    0,1,2,3,4,5,6,7,8,9

There are no comments on this comment yet.