Skip to content

Commit

Permalink
[rakudo] implement Hash.delete
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.perl.org/parrot/trunk/languages/perl6@30468 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
moritz committed Aug 23, 2008
1 parent aff4841 commit 2fcac45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/classes/Hash.pir
Expand Up @@ -39,6 +39,14 @@ src/classes/Hash.pir - Perl 6 Hash class and related functions
.return (self)
.end

.sub 'delete' :method
.param string key
.local pmc result
result = self[key]
delete self[key]
.return (result)
.end

.sub 'hash' :method
.return (self)
.end
Expand Down

0 comments on commit 2fcac45

Please sign in to comment.