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.
Interesting, i though python always passed parameters by reference! thanks!
Nope.
See http://lunar.s-ul.eu/bM1wWRVI
Yeah i think you are right, as python always passes parameters by reference.. Hmmm on this case it would not matter as they not specify, but generally you would want to make a copy of the pointer on another object and move that other object and not the original one.. i may edit my solution now to include that xD thanks!! :)
Won't this clobber the original linked list though?
Yeah you are very right. I came across the second argument yesterday when I was solving another kata and it crossed my mind how silly I was solving some other katas. Thank you very much for your comment!
I really like this solution, but I think you could have inherited the Hash class so you wouldn't have to have written as much code.
Array.new() can take a second argument which sets the default value if an index is not found within the Array.