Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Naively implement spec change 24fb00c9f0ca1ed63113
Setty.list returns keys, whereas Baggy/Mixy.list return pairs.  This causes
some smartmatching and set operators to return "unexpected" results in roast.
Investigating whether this would require change of the spec (Setty.list also
returning pairs) or changes in the set operators / smart matching.
  • Loading branch information
lizmat committed Sep 10, 2014
1 parent 405573a commit 9c7b2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Baggy.pm
Expand Up @@ -73,7 +73,7 @@ my role Baggy does QuantHash {
~ ").{self.^name}"
}

method list() { self.keys }
method list() { self.pairs }
method pairs() { %!elems.values.map: { (.key => .value) } }

method grab ($count = 1) {
Expand Down

0 comments on commit 9c7b2fd

Please sign in to comment.