Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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


...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?


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.


    -><- -><- -><- -><- -><-
    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?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-02-06 23:14 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (37 votes). Check out past polls.