dave08
02/13/2019, 4:52 PMkarelpeeters
02/13/2019, 4:55 PMsubstring
and +
.dave08
02/13/2019, 4:58 PMreplace
, even though I know the exact position I need... 😛. Maybe two substrings are more efficient? This is for an api that constantly gets hit.karelpeeters
02/13/2019, 4:58 PMkarelpeeters
02/13/2019, 4:59 PMStringBuilder(string)
and then insert
dave08
02/13/2019, 4:59 PMdave08
02/13/2019, 5:00 PMkarelpeeters
02/13/2019, 5:01 PMShawn
02/13/2019, 5:05 PMsubstring
implementation look like? my first guess was to just use take
and takeLast
but maybe I’m not taking something important into accountdave08
02/13/2019, 5:06 PMkarelpeeters
02/13/2019, 5:07 PMdave08
02/13/2019, 5:10 PMinsertAt(position: Int, stringToInsert: String)
in the stdlib.... thanks anyways!