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.
I like the zipWith tail trick, I'll have to remember that for code golf.
Good catch, fixed.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Does the ECMAScript standard guarantee that
JSON.stringify(obj1) == JSON.stringify(obj2)
iffobj1 === obj2
? I'm imagining something like, an array-like object and a proper Array might stringify to the same JSON string, which could cause problems.That might qualify as breaking stuff just to be antagonistic though.
EDIT: Just confirmed that this isn't an issue, at least in the V8 JavaScript engine (i.e. Chrome);
JSON.stringify
returns distinct results for Arrays and array-like objects.