Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix permutations.
This was the one victim in the spectests of the flat/.flat consistency
fix.
  • Loading branch information
jnthn committed Sep 14, 2015
1 parent 831b7cb commit aaa4363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -49,7 +49,7 @@ my sub permutations(Int $n) {
gather for ^$n -> $i {
my @i = flat 0 ..^ $i, $i ^..^ $n;
for permutations($n - 1) {
take (flat $i, @i[@$_])
take ($i, |@i[@$_])
}
}
}
Expand Down

0 comments on commit aaa4363

Please sign in to comment.