Q38
What is the purpose of the Enumerable#reduce method in Ruby?
A.
It filters elements of a collection based on a given condition
B.
It transforms each element of a collection using a given block
C.
It sorts elements of a collection based on a given criteria
D.
It combines all elements of a collection into a single value using a binary operation
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board