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.
красава просто лучший
Вот небольшое пояснение:
"[aeiou]": Это регулярное выражение, которое соответствует любой гласной букве (в нижнем или верхнем регистре).
"": Это строка, на которую будет заменена каждая найденная гласная буква, то есть на пустую строку.
options: [.regularExpression, .caseInsensitive]: Эти опции указывают, что мы используем регулярное выражение (.regularExpression) и игнорируем регистр (.caseInsensitive), чтобы учесть гласные в любом регистре.
in "of" he's specifying the chars he wants to replace, replacing them with "" (empty string, so, nothing) and than he's specifing in the options that the chars to remove have to be read as a regularExpression and that they are NOT case sensitive, so even uppercased vowels char will be removed.
Very cool, but I didn't understand anything))
Fixed
The Swift test still broken.
The author seems no longer active, so how to fix the test.