Permalink
Browse files

Add missing method "pairs" to Setty, oddly no tests pass so seems unt…

…ested
  • Loading branch information...
1 parent 0bacf6b commit 0c87927893b0ee43578aef259c52abfa8adfb421 @lizmat lizmat committed Sep 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/Setty.pm
View
1 src/core/Setty.pm
@@ -90,6 +90,7 @@ my role Setty does Associative {
}
method list() { %!elems.values }
+ method pairs() { %!elems.values.map({ $_ => True }) }
method pick($count = 1) { %!elems.values.pick($count) }
method roll($count = 1) { %!elems.values.roll($count) }

0 comments on commit 0c87927

Please sign in to comment.