grapheme
grapheme copied to clipboard
Support negative indexing in substr, like string slicing
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?