What is lambda expression in scala?



What is lambda expression in scala?..

Answer / Anil Kumar Mishra

A Lambda Expression in Scala is an anonymous function that can be passed around and used wherever a Function or Function1 type is required. It's syntactically represented as (param1: Type1) => expression.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is the current latest version of Scala?

1 Answers  


What is ‘scala trait’ in scala?

1 Answers  


Explain extend keyword?

1 Answers  


What do you understand by apply and unapply methods in scala?

1 Answers  


What are the major advantages of Scala Language? Are there any drawbacks of Scala Language?

1 Answers  


What is a ‘Scala set’? What square measure ways through that operation sets square measure expressed?

1 Answers  


What are the popular JVM Languages available now?

1 Answers  


What is the use of tuples in scala?

1 Answers  


Why Scala does NOT have 'static' keyword? What is the main reason for this decision?

1 Answers  


What is option/some/none design pattern in scala?

1 Answers  


Mention the advantages of scala?

1 Answers  


What is lazy val in scala?

1 Answers  


Categories