Q. What is the purpose of the each_with_index method in Ruby enumerators?
β
Correct Answer: (B)
To iterate over each element in a collection along with its index
You must be Logged in to update hint/solution