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. However, you can still be more expressive than this in Swift. Like:
!"abcdefghijklmnopqrstuvwxyz".lazy.map(string.lowercased().contains).contains(false)
And it should be a bit faster, because you don't need to iterate over the whole input, just all the letters in the alphabet. And thanks to
lazy
, it should stop the first time it gets false.