Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created November 23, 2009 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmichaud/241310 to your computer and use it in GitHub Desktop.
Save pmichaud/241310 to your computer and use it in GitHub Desktop.
our method push(*@values) is export {
my @a = @values;
Q:PIR {
$P0 = find_lex '@a'
$P0 = getattribute $P0, '$!values'
$P1 = find_lex 'self'
$P1 = getattribute $P1, '$!values'
$I0 = elements $P1
splice $P1, $P0, $I0, 0
}
self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment