develooper Front page | perl.perl5.porters | Postings from April 2008

Re: Make built-in list functions continuous

Thread Previous | Thread Next
David Nicol
April 13, 2008 13:23
Re: Make built-in list functions continuous
Message ID:
On Sat, Apr 12, 2008 at 10:21 PM, Aristotle Pagaltzis <> wrote:
>  the fact that Perl's `map` can produce an arbitrary
>  number of output elements per input element is an extremely
>  useful property

I completely agree with you and that is why my proposed map-replacing
macro (which I might put on CPAN under "Macrame::map" or something)
does C< for(do{BLOCK}) { NEXT_BLOCK_LEFTWARD } > instead of
simply assigning to $_.

A ( one in, one out )  mapping rewriter would be unacceptable confusing
except under a new keyword; that was "cmap"

although I did not put sufficient time into the post to work out bugs and
even maintain consistent terminology through it.  Guilty as charged.

bringing useful insights from Computer Science to the larger world

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About