Reinventing ruby flatten method
I actively started re-learning ruby by solving challenge exercise from exercism and I thought I should write about the challenges I found a bit difficult and overcame. You can check out my profile on exercsim to see my progress.Problem statementThe Ruby Array flatten method takes any deeply nested array (Multi-dimensional) and returns a non nested array using recursion. For example (open IRB[Interactive Ruby] in your terminal and run):.
Reinventing ruby flatten method #ruby #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper