On Wed Oct 27 00:22:05 2010, smosher wrote: > > Hi, > > Attached is a diff against rakudo/src/core/Any-list.pm which adds > support to reduce() for higher-arity functions. It ensures arity- > list agreement and is generally safe. Other than the test, the > functionality was already present... it needed two lines commented > out, two uncommented. Since tests passed and there were no > explanatory comments in the file, jnthn suggested I mail in a diff. > Here it is. > > I was considering including another patch to support functions that > reduce to more than a single term, but as it turns out this is best > handled by using a [list] item instead. > > Note: if the supplied function _does_ return more than a single term, > reduce() will not produce a correct result (neither this version > nor the original), but it will terminate assuming a finite list. > > Regards, > Stephen >
Unfortunately, this patch no longer applies against rakudo master, so I'm rejecting the ticket. Thanks for trying to make rakudo more awesome! -- Will "Coke" Coleda