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.
Hey what data type is returned such that === makes the solution not work.
Probably a typo, but your fixed test should be:
(is (= (head [5 1]) 5))
Didn't write the Clojure variant, but at this point one cannot change the test cases anymore.
The clojure tests shouldn't differ between the two datasctructures. I realise the difference, but this is a kata simply to illustrate the concept, rather than implement it in a type-safe, complete way.
Which top solution did you try (JS or CoffeeScript)? It's working fine when I try it.