InterviewSolution
Saved Bookmarks
| 1. |
What do you mean by Foldleft in Scala? |
|
Answer» The foldLeft method in SCALA is a member of the TraversableOnce trait. Using this method is ESSENTIAL in a RECURSIVE function and helps the developers prevent stack-overflow exceptions. This method also allows the developers to specify an INITIAL VALUE. |
|