You're probably right. I'm not a fan of the fallback map() function we have; it's too slow to be useful in most cases.
On Thu, May 22, 2014 at 8:01 PM, S Wade <[email protected]> wrote: > Hi, > > I'm wondering why zip, enumerate and filter on iterators return iterators > whereas map is eager and it returns a concrete sequence. This was a > surprise with code like this: > > ``` > for i in map(x -> split(x, ","), eachline(f)) > # … > end > ``` > > The map causes memory usage for large files as it constructs a concrete > array. > > thanks, > wade >
