Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ested
  • Loading branch information...
commit 0c87927893b0ee43578aef259c52abfa8adfb421 1 parent 0bacf6b
lizmat lizmat authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/core/Setty.pm
1  src/core/Setty.pm
View
@@ -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) }
Please sign in to comment.
Something went wrong with that request. Please try again.