# New Ticket Created by  Alex Jakimenko 
# Please include the string:  [perl #127099]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127099 >


Code:
my @result = ^1000 .hyper.map: * + 10;
say @result ~~ @result.sort

Result:
False

「hyper」 is supposed to give results in the original order.
“The order of elements is preserved.” (http://doc.perl6.org/routine/hyper)

However, the order is definitely messed up.

Here is an example on camelia:

<ZoffixWin> m: my @result = ^10 .hyper(:1batch).map: *+0; say [@result,
@result.sort]
<camelia> rakudo-moar eca5df: OUTPUT«[[0 2 1 3 4 5 6 8 9 7] (0 1 2 3 4 5 6
7 8 9)]␤»

The output is not consistent, every time you run it you can get a new
result.

Reply via email to