Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement Pair.hash, fixing S06-signature/slurpy-and-interpolation.t
  • Loading branch information
Tadeusz Sośnierz committed Jul 1, 2011
1 parent 14b0d55 commit 0b72806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Pair.pm
@@ -1,8 +1,10 @@
my class Pair is Enum does Associative {
# method value() is rw { ... }
method hash {
{ self.key => self.value }
}
}

sub infix=>»($key, Mu $value) {
Pair.new(:key($key), :value($value))
}

0 comments on commit 0b72806

Please sign in to comment.