Skip to content

Commit

Permalink
Flesh out NQPList a little bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 12, 2010
1 parent 2e85654 commit d88a87b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/NQP/NQPSetting.pm
Expand Up @@ -48,6 +48,12 @@ knowhow NQPNum is repr('P6num') {
}

knowhow NQPList is repr('P6list') {
method elems() {
nqp::lllist_elems(self)
}
method at_pos($idx) {
nqp::lllist_get_at_pos(self, $idx.Int)
}
}

knowhow NQPArray is repr('P6list') {
Expand Down

0 comments on commit d88a87b

Please sign in to comment.