grapheme icon indicating copy to clipboard operation
grapheme copied to clipboard

Support negative indexing in substr, like string slicing

Open alvinlindstam opened this issue 7 years ago • 0 comments

It should be possible to do grapheme.substr(string, -10) to get the last ten graphemes, and the like (like slicing, but function based).

Implementation considerations:

Would probably require traversing through the full string. Is it possible to go backwards until som state that we know would be a break and then only traverse the end from there?

alvinlindstam avatar Jul 24 '17 10:07 alvinlindstam