Skip to content

Commit

Permalink
Temporary fix to get List.permutations to work
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 9, 2014
1 parent 362f3fd commit 55bf027
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/List.pm
Expand Up @@ -593,7 +593,15 @@ my class List does Positional { # declared in BOOTSTRAP
}

method permutations() {
#?if moar
map { [self[@$_]] }, permutations self.elems;
#?endif
#?if jvm
gather take [self[@$_]] for permutations self.elems;
#?endif
#?if parrot
gather take [self[@$_]] for permutations self.elems;
#?endif
}
}

Expand Down

0 comments on commit 55bf027

Please sign in to comment.