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...


Explain the scala anonymous function.



Explain the scala anonymous function...

Answer / Manish Kumar Prabhakar

A Scala anonymous function (also known as a lambda expression) is a function without a name. It can be created using curly braces and an arrow => to separate parameters from the body of the function. For example, val sum = (x: Int, y: Int) => x + y.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

List different types of literals available in scala?

1 Answers  


What do you mean by trait in scala and when it is used?

1 Answers  


What are case classes in scala?

1 Answers  


What is a flatmap in scala?

1 Answers  


Who is the father of Scala?

1 Answers  


Does Scala support Operator Overloading? Does Java support Operator Overloading?

1 Answers  


Mention how scala is different from java?

1 Answers  


Is scala an oop?

1 Answers  


Mention the distinction between associate degree object and a category ?

1 Answers  


What is lazy val in scala?

1 Answers  


What is a higher-order function in scala?

1 Answers  


What is an array in scala?

1 Answers  


Categories