2
Vote

Suggestion: analog for the .ToList() method

description

One thing that would be very useful is an analog for the .ToList() method.

Many times I need to "materialize" (or in other words "evaluate", "freeze") a sequence in order to prevent it from reevaluating multiple times. In C#, I use .ToList() for this purpose, but linq.js lacks an alternative.

I cannot use .toArray(), because its result is not IEnumerable anymore, so I have to then call Enumerable.from every time I want to use it.

comments

neuecc wrote Nov 22, 2013 at 10:45 PM