Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix EnumMap.keys and .kv to return proper Perl 6 strings
  • Loading branch information
moritz committed Sep 25, 2010
1 parent 13c8a23 commit 2632afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/EnumMap.pm
Expand Up @@ -69,11 +69,11 @@ class EnumMap is Iterable does Associative {
method iterator() { self.pairs.iterator }

method keys() {
self.pairs.map({ $^pair.key })
self.pairs.map({ ~$^pair.key })
}

method kv() {
self.pairs.map({ $^pair.key, $^pair.value }).flat
self.pairs.map({ ~$^pair.key, $^pair.value }).flat
}

method list() { self.pairs }
Expand Down

0 comments on commit 2632afb

Please sign in to comment.