On Thu, Jan 22, 2009 at 11:45 AM, Patrick R. Michaud <pmich...@pobox.com> wrote: > On Wed, Jan 21, 2009 at 09:00:23AM -0800, c...@cvs.perl.org wrote: >> Author: coke >> Date: Wed Jan 21 09:00:22 2009 >> New Revision: 35869 >> >> Modified: >> trunk/languages/perl6/src/classes/Range.pir >> >> Log: >> Add a basic version of .pick() for Range and hopefully not break anything. > > The version of .pick that was added does not match the spec. > > It would also be nicer if we could simply use the .pick from Any > and not re-implement it for Range. > > Pm >
I'll remove it. The reason I override it for range was to avoid flattening the entire list to provide szagab a speed boost for (1..1000000).pick I shouldn't have committed it, but was in a rush on some non-parrot tasks. -- Will "Coke" Coleda