Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Great solution
I'm using Swift 5.2 / Xcode 11.4.1 and that method is available on both
String
andNSString
(just with different types for the range argument)Good one. Do you know until what Swift version the
replacingCharacters
method was supported? Not anymore in 5.2, and apparently valid around 4.2.