[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LFM + LFSP = LFE?



On Thu 12 Jun 2003 22:54, Steven Grady wrote:

> iteration over multiple Enumerables.  A variation on map that supported
> indefinitely large objects (e.g. I/O streams) would be very awkward --
> the implementation would require threads or continuations.

I agree with most everything you say, except the above statement which 
puzzled me.
Would this:

File.new("file").map{|line| line.reverse}

qualify as a "variation on map" that supports I/O streams? Or do you have 
something else in mind?

-- 
Grzegorz ChrupaƂa
jabber: grzegorzc@jabber.org
website: http://pithekos.net