Reinventing ruby flatten method
17-May-2019 1684
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 #rubydeveloper #rubyonrails #Reinventing #flatten #method https://rubyonrails.ba/link/reinventing-ruby-flatten-method