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.
that's soo clean gj
brilliant
This comment is hidden because it contains spoiler information about the solution
This comment has been deleted.
This comment is hidden because it contains spoiler information about the solution
That's just amazing!
For those asking, this is building a lookup table at runtime. Yes clever, but be warned, every line is evaluated every time. I have worked on projects that used this pattern with function calls in them and it was a frequent source of bugs. For example, if
3
called a specific function then every call tolikes
would call that function regardless of the length ofnames
. You can work around this by building the lookup table of functions but the additional indirection increases comprehension costs. It is a useful pattern, just be careful of the sharp edges.When the pattern matching js proposal is adopted I would recommend using it instead for this type of problem.
not good from the readibility perspective.
dude, this code is so clean. Congrats!
ghsdvsdv
great work
Compaired to yours mine is a mile long. Jeez... nice work
love this solution
Brilliant!!
This comment is hidden because it contains spoiler information about the solution
Loading more items...