Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
.permutations should also return arrays
Someone fixed .combinations earlier but missed .permutations
  • Loading branch information
TimToady committed Jan 24, 2014
1 parent 8d2fb6c commit dc96308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/List.pm
Expand Up @@ -574,7 +574,7 @@ my class List does Positional { # declared in BOOTSTRAP
}

method permutations() {
gather take self[@$_] for permutations self.elems;
gather take [self[@$_]] for permutations self.elems;
}
}

Expand Down

0 comments on commit dc96308

Please sign in to comment.