Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enum.invert now returns an Enum, not a Pair
  • Loading branch information
moritz committed Jun 13, 2012
1 parent 1e47735 commit 90333b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Enum.pm
Expand Up @@ -15,7 +15,7 @@ my class Enum does Associative {
}

method invert() {
$.value => $.key;
Enum.new(key => $.value, value => $.key);
}

method key(Enum:D:) { $!key }
Expand Down

0 comments on commit 90333b3

Please sign in to comment.