Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What do you mean by foldleft in scala?



What do you mean by foldleft in scala?..

Answer / 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

More Scala Interview Questions

What is the difference between :: and #:: in scala?

1 Answers  


What is the difference between apply and unapply methods in scala?

1 Answers  


What is an Anonymous Function In Scala? What is a Function Literal in Scala? What are the advantages of a Anonymous Function/Function Literal in Scala?

1 Answers  


What is scala and why it is used?

1 Answers  


Explain implicit classes with syntax?

1 Answers  


In what ways that Scala is healthier than different programming language?

1 Answers  


How do we make a call to a private primary constructor in scala?

1 Answers  


How do I append to the list?

1 Answers  


What is 'Application' in Scala or What is Scala Application? What is 'App' in Scala? What is the use of Scala’s App?

1 Answers  


What is the access modifier in scala?

1 Answers  


In what ways Scala is better than other programming language?

1 Answers  


Explain the main difference between List and Stream in Scala Collection API? How do we prove that difference? When do we choose Stream?

1 Answers  


Categories