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.
Because
Flat
is a global object, thus storing unnecessary results from previous function calls.This comment is hidden because it contains spoiler information about the solution
I don't follow, how does the end parentheses make it private?
I too not recommended using eval.. I think this kata trying learn us work on state machine.
Using eval would not be recommended if you can't control the input (For example 'user input' -> could be executed as code)
This is a Kata though, not a function that would run after some user input on an actual application.