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.
.
Test cases added.
Write some test cases for the user to test against.
Be careful not to modify anything you don't intend to.
I have the same issue, could you please help me with it, if you know an answer? Thanks.
Thanks for sharing! That article shed some light on Ruby programming practices.
https://valve.github.io/blog/2014/07/04/from-object-to-functional-immutability/
The Immutability of Ruby, take a look.
As someone who is learning ruby, why do some solutions omit a return in the function? I see doing so works, but coming from other OOP langages, this seems very...wrong. I've seen this in multiple ruby kata so far. Can someone explain?
This comment is hidden because it contains spoiler information about the solution
I seem to be having trouble with the Test Case. Here's my output with some
console.log
calls added to find the length of the list passed in:I'm confused as to why
xs.length
is different than the number of elements to sort. I didn't include it here, but I've also usedconsole.log
to see the value ofxs.length
and didn't see the Expected values. Is this a bug?