good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: reduce like iteratorsby LanX (Saint) |
on Jan 03, 2011 at 22:08 UTC ( [id://880266]=note: print w/replies, xml ) | Need Help?? |
As already stated in the OP the need to appropiately name a whole new family of reduce-like iterators is an extra problem. At least for me it's more complicated than implementing them. But if it's easier for you to baptize reduce-like maps, greps, parts, and so on in a quick post, I would appreciate to hear your suggestions If I was forced to chose only one implementation I would certainly chose a reduce like map, like you did, because it has the biggest flexibility. But I'd prefer to have a solution where map is still named map and grep ist still grep! IMHO extra options and special vars should activate and supply the needed functionality.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|