Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Fold a list using map splices

by Aristotle (Chancellor)
on Feb 19, 2003 at 22:59 UTC ( [id://236871]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @spliced;
    push @spliced, [ splice @_, 0, $num_elements ] while @_;
    my @result = map func1($_), @spliced;
    
  2. or download this
    my @result;
    push @result, func1([ splice @_, 0, $num_elements ]) while @_;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found