Custom Enumerables
Ruby is so awesome it allows developers to modify or add new methods to Some of its class or module, like the Enumerable module.
Ruby is so awesome it allows developers to modify or add new methods to Some of its class or module, like the Enumerable module.
In my last post, I have made an implementation of recursion in creating a palindrome. And in this post we will still apply that same process of recursion and then using another fundamental operation called merging.
Knowing how to implement an iterative and recursive approach is a good exercise to our brain.