in reply to Re: map: chaining vs. nesting
in thread map: chaining vs. nesting
Putting the idea in better terms, I'm suggesting that map, in an ideal world where perl development was effortless, should behave like (1..100000): when its output is assigned, the range generates the whole list; but when its output is used iteratively (at least, in a foreach loop), it simply generates one output value at a time, as needed. map, grep, and ranges could all behave that way when feeding map, grep, or foreach.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: map: chaining vs. nesting
by diotalevi (Canon) on Jun 18, 2004 at 16:23 UTC |