This project is read-only.

Suggestion: analog for the .ToList() method


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.


neuecc wrote Nov 22, 2013 at 11:45 PM