Home / Programming MCQs / Ruby MCQs / Question

M

Mr. Dubey • 51.17K Points
Coach

Q. What does the flat_map method do in Ruby enumerators?

(A) Converts a collection into an enumerator
(B) Maps each element to a new collection and flattens the results
(C) Iterates over each element in a collection and applies a block of code to accumulate a value
(D) Converts a collection into an enumerator

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.