Permalink
Browse files

Flesh out NQPList a little bit.

  • Loading branch information...
1 parent 2e85654 commit d88a87b1b00863afdacc1d5a77d9f20fbe54384d @jnthn committed Sep 12, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 common/NQP/NQPSetting.pm
View
@@ -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') {

0 comments on commit d88a87b

Please sign in to comment.