in reply to Re: Map Vs Foreach
in thread Map Vs Foreach
map is a slow
Why do you say that?
map{} takes an input array and makes a new output array
map transforms lists, not only arrays. Likewise, for iterates over lists.
As well, map doesn't have to produce any output. A void context map is poor style in my book, but there's no performance penalty in modern Perls.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Map Vs Foreach
by Marshall (Canon) on Nov 26, 2009 at 08:23 UTC | |
by JavaFan (Canon) on Nov 26, 2009 at 11:58 UTC | |
by JavaFan (Canon) on Nov 27, 2009 at 12:34 UTC | |
by Jenda (Abbot) on Dec 01, 2009 at 17:06 UTC | |
by chromatic (Archbishop) on Nov 26, 2009 at 18:10 UTC |