You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I feel the absence of a SLICE method, essentially doing:
method SLICE(@pos) {
my @values;
@values.push(self.AT-POS($_)) for @pos; @values
}
Making this part of the internal API, would allow for several optimizations, e.g. when working on fully reified lists / arrays and given a Range.
Yes please. I've thought about supporting Array access on Noun objects in Inline::J, and a SLICE method that receives all the positions requested would be very useful.
Sometimes I feel the absence of a SLICE method, essentially doing:
method SLICE(@pos) {
my @values;
@values.push(self.AT-POS($_)) for @pos;
@values
}
Making this part of the internal API, would allow for several optimizations, e.g. when working on fully reified lists / arrays and given a Range.
Moved from rakudo/rakudo#1639
The text was updated successfully, but these errors were encountered: