You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
lang-swift
let str = "🇨🇭🇩🇪🇺🇸Hello"print(str.substring(to: 2))str[5], I want to access the character at index 5, whatever that character appears to be or how many bytes it takes. Isn't Swift all about developer's productivity?countElement(str)to find the length. In Swift 3, Apple made string not conforming toSequenceand forced everyone to usestr.charactersinstead. These guys are not afraid of making changes. Their stubbornness on integer subscripting in really hard to understand