Ah I tried map_with_index but that's not a method. Did not know there was a .map.with_index!
I'm glad to hear that. Enumerable has so many methods, which is useful but I take a little bit time to remember them.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.