in reply to Re: Rook question
in thread Rook question
Let's fold a list.
use List::Util 'reduce'; sub total { return reduce { $a + $b } 0, @_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Rook question
by squimby (Acolyte) on Oct 19, 2012 at 00:40 UTC | |
by blue_cowdawg (Monsignor) on Oct 19, 2012 at 13:34 UTC | |
by Anonymous Monk on Oct 19, 2012 at 17:16 UTC |