Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
We need Set.grab to return a List, rather than a Parcel
  • Loading branch information
lizmat committed Oct 4, 2013
1 parent 0a2efdb commit 4fd3721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Setty.pm
Expand Up @@ -66,7 +66,7 @@ my role Setty does QuantHash {

method list() { %!elems.values }
method pairs() { %!elems.values.map({ $_ => True }) }
method grab($count = 1) { %!elems{ %!elems.keys.pick($count) }:delete }
method grab($count = 1) { (%!elems{ %!elems.keys.pick($count) }:delete).list }
method pick($count = 1) { %!elems.values.pick($count) }
method roll($count = 1) { %!elems.values.roll($count) }

Expand Down

0 comments on commit 4fd3721

Please sign in to comment.