Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Understanding the map function

by wfsp (Abbot)
on Jul 14, 2005 at 09:55 UTC ( #474810=note: print w/replies, xml ) Need Help??


in reply to Re: Understanding the map function
in thread Understanding the map function

Nitpick.

...returns a list value for each element of LIST...

It took me a while to get my head 'round that. Once you do the docs make more sense.

Replies are listed 'Best First'.
Re^3: Understanding the map function
by castaway (Parson) on Jul 14, 2005 at 10:16 UTC
    That would make it more confusing, to me. It already says 'evaluates something for each element in list', thus 'returns a list of the results' cant mean anything but 'list of evaluated somethings for each element in list' ... or not?

    C.

Re^3: Understanding the map function
by jwest (Friar) on Jul 14, 2005 at 12:44 UTC
    That edit makes the definition imprecise. map can return multiple list values for each element of LIST.

    --jwest



    -><- -><- -><- -><- -><-
    All things are Perfect
        To every last Flaw
        And bound in accord
             With Eris's Law
     - HBT; The Book of Advice, 1:7
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://474810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-05-25 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (145 votes). Check out past polls.

    Notices?