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.
It was an exciting experience! Thanks a lot! This kata has made my brain sweat!
Thanks, I'll read
Actually, my solution in Swift is
"input.map { (Double(Int(sqrt(Double($0)))) == sqrt(Double($0))) ? Int(sqrt(Double($0))) : ($0 * $0) }"
...and it works in Xcode playground on my Mac, but local compilator can't build it ((
I'm just trying to understand how it works..?
It would be good if you explain: What is "char2Lower", "modulus" etc...
Should I import some libraries maybe?