We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
we can use each_with_index to Iterates through the array while tracking the index with map because you're transforming each element into a new string format and then use drop to skips the first skip formatted entries
here is my solution
Ruby - Enumerable - each_with_index
You are viewing a single comment's thread. Return to all comments →
we can use each_with_index to Iterates through the array while tracking the index with map because you're transforming each element into a new string format and then use drop to skips the first skip formatted entries here is my solution