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.
This is very clever, but how in the world is this a best practice? It's barelly readable!
Each a.shift is an O(n) operation. You're pretty much making 1 operation per each element of the array. This code is really short, but really inneficient :(.
n = [a, b, c, d, e];
n.shift();
This moves a out, moves b to 0, moves c to 1, moves d to 2... etc.
If your array is large enough, these operations add up.
Actually, this is still giving me problems:
ReferenceError: Value is not defined
at Test.it
at Test.describe
You should disable AdBlock... it was blocking the Value global from showing up in my environment.
I'm also getting this error. What's up with writting your own node class? This doesn't make any sense. You're supposed to get your node object as a parameter.
Wow... got a bit lost in this line:
return (ops[operation] || function() { return null; })(num1, num2);
Anyone care to explain ?