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.
All classes come from some super class, you need to lookup ancestors also lookup the RUBY docs, Integer inherits methods from its superclasses.
class numeric has step method
This comment is hidden because it contains spoiler information about the solution
Cool! Thanks for the link @christianhammer!
This is much easier to read than your solution.
The same thing caught me by surprise. Once you complete this, you're definitely ready for the Functional Binary Trees kata.
This comment is hidden because it contains spoiler information about the solution
Yea, you treat EmptyList as an empty list (and also the termination of a list), and ListNode as a list that begins with its value.
I am using "Test.expect" to validate the answer. I've also added your suggestion. Thanks.
No they are not valid. And they are not passing the test code.