On Sun Jun 20 13:50:41 2010, jn...@jnthn.net wrote:
> This may, or may not, be a case of the closures bug, but:
> 
> use v6;
> 
> my @my-array = 4,2,3,4;
> 
> multi sub fsort([$p?,*...@r]) {
>     return fsort(@r.grep( {$_ <= $p} )),$p,fsort(@r.grep( {$_ > $p} ))
> if $p || @r;
> }
> 
> say fsort(@my-array).join(' ');
> 
> 
> Works, and removing the "multi" breaks it.
> 
> Jonathan

This now works both ways. assigning to moritz++ for test coverage.

-- 
Will "Coke" Coleda

Reply via email to