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.
The $ is just a character in the string. Is there a reason you think it would need to be escaped?
How come the $ does not need to be escaped in this solution?
This comment is hidden because it contains spoiler information about the solution
fixed some time ago
I don't quite get it, can you explain it pretty please?
I agree with waldnzwrld. that is not the porpus of this kata.
fixed
fixed
"...has exactly 4 letters..."
This solution accepts "2pac" and "@&%!", which aren't exactly all letters.
Kata description says: "...a list of strings..." 🤷♂️
Doesn't this take into account strings with digits in them as well ?
It's the * operator e.g. 2 * 3 = 6
Find out more about this solution by inspecting: https://apidock.com/ruby/Enumerable/reduce
What is the (:*) called? I'd like to learn about it. Thanks.
Not applicable anymore
Elegant.
Loading more items...