Answer Posted / Rohit Singh Yadav
FoldLeft is a higher-order function in Scala that applies an associative binary operation to the elements of a collection from left to right. It takes two parameters: the initial value and a function that takes two arguments. The function is applied to the first and second elements, then the result is passed as the second argument to the next application, and so on.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers