Skip to content

Commit

Permalink
Implement Hash.hash
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
uasi authored and moritz committed Dec 19, 2010
1 parent a95c1d6 commit a82071b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Hash.pm
Expand Up @@ -93,6 +93,10 @@ role Hash is EnumMap {
return self.pairs;
}
method hash() {
return self;
}
multi method sort(&by = &infix:<cmp>) {
self.pairs.sort(&by)
}
Expand Down

0 comments on commit a82071b

Please sign in to comment.