Re: [code-review] Algorithm::GenerateSequence
Richard Clamp <richardc-PThgL6HeIXdH4x6Dk/[email protected]> Mon, 8 Sep 2003 14:43:48 +0100
| Newsgroups | gmane.comp.lang.perl.code-review-ladder |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Sep 08, 2003 at 06:54:21PM +1000, Andrew Savige wrote:
> I noticed in sub new:
> _counters => [ map { 0 } @_ ],
> can be made a little shorter and faster like this:
> _counters => [ (0) x @_ ],
Thanks, micro-optimisation applied :)
--
Richard Clamp <richardc-PThgL6HeIXdH4x6Dk/[email protected]>