Every other

Ian Malpass ian at indecorous.com
Fri Oct 30 14:57:12 GMT 2009

Mark Fowler wrote:

> What I would prefer is this:
> my @new = every_other @old;
> Ideally this would be a utility in List::MoreUtils or suchlike, but
> it's not.  Ideally it'd be implemented in C as well as in Perl so that
> it doesn't burn ops for such a simple idea.
> Before I get going with the coding, does anyone know of anything else
> that can do this?

Just a note about Mark's question. He did point out that there were many 
ways to do it, but asked if anyone had already done it (whichever way) 
and put it behind a readable interface so he didn't have to do it himself.

No-one's answered that yet (including me, because I don't know, but it 
doesn't seem to be covered explicitly by List::AllUtils).


More information about the london.pm mailing list