M

Mr. Dubey • 53.53K 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
  • Correct Answer - Option(B)
  • Views: 70
  • Filed under category Ruby

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.

Be the first to start discuss.


Question analytics