diff --git a/common/NQP/NQPSetting.pm b/common/NQP/NQPSetting.pm index 3ec15c6..4bda6bd 100644 --- a/common/NQP/NQPSetting.pm +++ b/common/NQP/NQPSetting.pm @@ -72,6 +72,9 @@ knowhow NQPList is repr('P6list') { method elems() { nqp::lllist_elems(self) } + method Numeric() { + self.elems + } method at_pos($idx) { nqp::lllist_get_at_pos(self, $idx.Int) } @@ -81,6 +84,9 @@ knowhow NQPArray is repr('P6list') { method new() { nqp::instance_of(self.WHAT) } + method Numeric() { + self.elems + } method elems() { nqp::lllist_elems(self) }