> > It also reminds me of mjd's mention of: my($first) = sort {...} @list; > > being O(n) if Perl were really Lazy. > > But it would need a completely different algorithm. Which is not too > bad. And even > > my ($first, $second, $third) = sort {...} @list; > > is kind-of plausible. So we'd definitely want ... my @heapa is heap; @heapa = @list; my $first = shift @heapa; my $second = shift @heapa; my $third = shift @heapa; -- David Nicol 816.235.1187 [EMAIL PROTECTED] Parse, munge, repeat.
- Re: Please make "last" work in "grep&quo... Graham Barr
- Re: Please make "last" work in "grep&quo... Jarkko Hietaniemi
- Re: Please make "last" work in "gre... Bart Lateur
- Re: Please make "last" work in "grep&quo... Dan Sugalski
- Re: Please make "last" work in "grep&quo... Larry Wall
- Re: Please make "last" work in "gre... Dan Sugalski
- Re: Please make "last" work in "grep&quo... Damian Conway
- Re: Please make "last" work in "gre... Dan Sugalski
- Re: Please make "last" work in "gre... Larry Wall
- Re: Please make "last" work in "grep&quo... Ariel Scolnicov
- Re: Please make "last" work in "gre... David L. Nicol
- Re: Please make "last" work in "grep&quo... Mark-Jason Dominus