Skip to content

Commit

Permalink
Quick version of .pop which seems to work, and a very mysteriously br…
Browse files Browse the repository at this point in the history
…oken pop proto.
  • Loading branch information
colomon committed Dec 9, 2009
1 parent 7796544 commit e1fcd3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/Array.pm
Expand Up @@ -26,4 +26,10 @@ augment class Array {
};
self;
}

our multi method pop() {
self.elems > 0 ?? pir::pop__PP($!values) !! Mu;
}
}

our proto sub pop(@array) { @array.pop; }

0 comments on commit e1fcd3c

Please sign in to comment.