Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
combinations/permutations as list methods via Any
  • Loading branch information
TimToady committed Jan 24, 2014
1 parent 80c1e76 commit 8d2fb6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Any.pm
Expand Up @@ -66,6 +66,8 @@ my class Any { # declared in BOOTSTRAP
method kv() { self.list.kv }
method pairs() { self.list.pairs }
method reduce(&with) { self.list.reduce(&with) }
method combinations(|c) { self.list.combinations(|c) }
method permutations(|c) { self.list.permutations(|c) }

proto method classify(|) { * }
multi method classify($test) {
Expand Down

0 comments on commit 8d2fb6c

Please sign in to comment.