Followers

Tuesday, March 6, 2018

Anonymous functions

Q1)What is Anonymous functions in Scala?
Ans:An anonymous function is an expression that evaluates to a function;
the function is defined without giving it a name.
Example:
(x:Int) => x*x*x

No comments:

Post a Comment