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.
You people should really look at the kyu of this kata. It is meant to introduce enumerables to beginners. There are higher kyu katas that explicitly disable native methods to teach other concepts. This is not one of them.
I aggree kitko, those katas teach us how to code stuff like any or all without using those build in methods.
This solution is solution of @bellmyer himself (this Kata's sensei)
I disagree.
The spirit of these <8 kyu> kata is basic language exploration, the description contains a direct link to documentation on
enum#any
, and nowhere does it state that the use ofenum#any
is disallowed (nor is it disabled).The purpose here is to teach beginners about
enum#any
, not to force more advanced Rubyists to replicate native functionality.