Skip to content

Commit

Permalink
implement method Bool in Hash
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Mar 8, 2010
1 parent 393fcd4 commit bd7c6f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Hash.pm
Expand Up @@ -52,6 +52,10 @@ role Hash is EnumMap {
self
}

method Bool() {
?pir::istrue__IP(pir::getattribute__PPs(self, '$!storage'));
}

method delete(*@keys) {
my @deleted;
for @keys -> $k {
Expand Down

0 comments on commit bd7c6f5

Please sign in to comment.