Permalink
Browse files

[Set] implemented .hash

  • Loading branch information...
1 parent 870efdb commit 33e94e7f86ed5101f97bd4056b141eb2180fb6fd @masak masak committed Sep 2, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/Set.pm
View
1 src/core/Set.pm
@@ -36,6 +36,7 @@ class Set does Associative {
method Num() { +self.elems }
method Bool() { ?self.elems }
+ method hash() { hash @!elems Z=> True xx * }
multi method union(@otherset) {
self.new((@!elems, @otherset));

0 comments on commit 33e94e7

Please sign in to comment.