anonymized user 468275 has asked for the wisdom of the Perl Monks concerning the following question:
I have been having trouble finding (imho) satisfactory documentation for the map function.
For example, this http://www.perlfunc.org/function.php?name=map, just doesn't tell me what I want to know in a way I can unambiguously understand it. For example, the opening line,
with its sort of circular definition of 'evaluation', makes me look ahead at the examples for clues, but the examples seem too obscure.Description: Evaluates the BLOCK or EXPR for each element of LIST (locally setting +$_ to each element) and returns the list value composed of the result +s of each such evaluation
(1) Is it just me? Do other people find this documentation clear enough?
(2) Can anyone provide a link to better documentation of this function (or suggest an alternative way to document it)?
Update: After about the fifth time reading through it, I finally understood it, although I am still interested in others' opinions.
Thanks in advance!
-Simon
One world, one people
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Understanding the map function
by dbwiz (Curate) on Jul 14, 2005 at 09:29 UTC | |
Re: Understanding the map function
by reasonablekeith (Deacon) on Jul 14, 2005 at 09:15 UTC | |
Re: Understanding the map function
by castaway (Parson) on Jul 14, 2005 at 09:23 UTC | |
by wfsp (Abbot) on Jul 14, 2005 at 09:55 UTC | |
by castaway (Parson) on Jul 14, 2005 at 10:16 UTC | |
by jwest (Friar) on Jul 14, 2005 at 12:44 UTC | |
by anonymized user 468275 (Curate) on Jul 14, 2005 at 09:25 UTC | |
Re: Understanding the map function
by tlm (Prior) on Jul 14, 2005 at 11:57 UTC | |
by anonymized user 468275 (Curate) on Jul 14, 2005 at 12:27 UTC | |
Re: Understanding the map function
by ysth (Canon) on Jul 14, 2005 at 17:05 UTC |