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.
Love this, it's similair to the most upvoted answer but seems more clear
I truly don't get why this solution isn't upvoted more ^^ Well done!
You're not alone =)
I know this is an old comment, so this is for whoever sees this.
Ruby seems like a bit of an outlier, as it's naturally less verbose
than most other languages. At least in my experience, once you become
familiar with all of the most commonly used ruby methods, one liners
like this can actually be just as understandable (if not more so) as
more verbose code.
I failed to realize too facepalm. My degree is crying right now LMAO
I get it haha but I swear it didn't stop my brain from making dialup noises after seeing it lmao
Yeah, I honestly have no idea what my train of thought there was haha. It was a decent while ago, I suspect during the period when I was mindlessly going through a number of 8 & 7 kyu kata without giving them much attention. That's likely why the semicolon at the end of that line is missing as well.
That ternary boolean return is just... O.o
Fair enough, but it kinda defeats the point lol
As regex is not enforced, it's a valid solution ;-)
Truthy vals are really useful. e[regexp] would be considered "truthy" if
a match is found, and "falsey" otherwise.
LMAO. 10/10 for ignoring the authors rules completely XD
short, but where's the Regex? this is "Regexp Basics" after all ;)
Clever, BUT... this isn't Regex :/
I did this too at first, but I figured a realistic solution would
return a new array, rather than modify existing ones.
Loading more items...