On Sunday, 6 December 2015 at 10:43:24 UTC, Jacob Carlborg wrote:

Not really what I needed, for me it would be enough with slicing the bytes.


I can't really test it, since I'm stuck on "Mavericks" and they stopped updating XCode.
(last version before they destroyed the UI).

But this should work, no?
String(Array(str.characters)[1...2])

Guess now that it's open source I can finally play around with Swift2+ though.

Reply via email to