Range<String.Index>(start: 0, end: 4) Extra argument 'end' in call Range<String.Index>(start: 0) Missing argument for parameter 'end'
@kongtomorrow Oh, I get that. But I’m happy to take the O(n) hit when removing a substring. Hate having my hands tied in ridiculous ways.
-
-
@warrenm `str[str.startIndex..<advance(str.startIndex,4)]`, woo. -
@kongtomorrow This worked. I can’t say I’m blown away by the elegance, though.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.