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.
Why isn't it best practice? Because of efficiency?
If it is the readability, it is one of the most readable solutions, certainly more readable than regex.
True
This isn't really best practice. It's more like, shortest code.
Hey you know what i just ignore the interger. Nice.
if and else before for then another if for ignoring interger! really Nice
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Seeing other solutions is always nice to learn some new functions, Nice!
It only works if both are there, since it's a ternary condition and not "normal" if-else statements.
Hey. if and else before for! Nice!
Ahhhhhhh, I didn't realize I could use an if statement after my in statement. That would have been so much more elegant. I also learned about strip, so thanks for that :)
ah, we just found an user with an alter account who's upvoting himself?