Comment Comment by rockwotj > outputs 3 charsYou mean codepoints or maybe grapheme clusters?Anyways yeah it’s a little more complicated but the principle of being able to truncate a string without splitting a codepoint in O(1) is still useful parent rockwotj 1 year ago
You mean codepoints or maybe grapheme clusters?
Anyways yeah it’s a little more complicated but the principle of being able to truncate a string without splitting a codepoint in O(1) is still useful