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.
Thank you! Its training. I try to make code document itself. Thats why I love Lua :D
(eventhough sometimes I overdo it... see the Interpreter kata)
You should replace
arr = reducepairs(arr)
toreturn reducepairs(arr)
.This way you would get a tail-call and avoid stack overflows.
If no move is found it will
return arr
anyway and the call is already there.