http://www.perlmonks.org?node_id=474810


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