Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: adding items, but with interim results

by AnomalousMonk (Archbishop)
on Mar 30, 2013 at 23:36 UTC ( [id://1026309]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @y = map { state $z = 0; $z += $_ } @x;
    
  2. or download this
    >perl -wMstrict -MData::Dump -lE
    "sub summer { return map { state $z = 0;  $z += $_; } @_; }
    ...
    
    ----------
    [0, 1, 3, 2]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-26 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found