Add convenience method for converting a Range
to a start and end index
#1971
Labels
A-vm
Area: Interpreter VM implementations.
C-enhancement
Category: New feature or request.
C-quality
Category: Refactoring, cleanup, and quality improvements.
Pretty nice refactorings. I've got a couple of questions around the
sys::mrb_range_beg_len
and a couple of tests for byteslice that could be added.I'm wondering whether something like this would ever make sense:
☝️ Something that does all the conversion to usize, and just returns the elements to pluck out of a list. I don't think there's anything particular special about a range, except it gives you many ways to access elements in an array in this case.
I'm approving since I don't see anything in particular that could/should break.
Originally posted by @b-n in #1958 (review)
The text was updated successfully, but these errors were encountered: