Strings

No indexing, no Char

Reach for s[0] and Ascent stops you before it even runs.

Unicode strings aren’t integer-indexable, and the languages that pretend otherwise are lying to you. “The i-th character” has no honest answer: bytes, UTF-16 code units, and code points all mean different things.

Let’s test it on a string that contains an emoji. The .chars() method breaks a string into its characters:

Run it, and notice the whole flag comes back as a single element, exactly like a plain letter.