sorear/niecza — Issue #73: pick returns references to objects in array rather than copies of the objects
Author: colomon
Created: 2011-10-21 11:18:09+00:00
State: open

niecza: my @a = 10, 9, 8, 7, 6, 5, 4, 3, 2, 1; sub test(@b) { say @b.perl; @a = @a.sort({ $^a <=> $^b }); say @b.perl }; test(@a.pick(5));
p6eval	niecza v10-58-gc851cf8: OUTPUT«(9, 10, 4, 1, 7).list␤(3, 2, 3, 3, 5).list␤»