Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Flesh out NQPList a little bit.

  • Loading branch information...
commit d88a87b1b00863afdacc1d5a77d9f20fbe54384d 1 parent 2e85654
@jnthn authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 common/NQP/NQPSetting.pm
View
6 common/NQP/NQPSetting.pm
@@ -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') {
Please sign in to comment.
Something went wrong with that request. Please try again.