Question
What is a Scala function literal?
Select an option. Your answer will be checked instantly.
Correct Answer: C. An anonymous function such as x => x * 2
Explanation:
Anonymous functions can be passed as values to higher-order methods.
Spark transformations frequently use them.
Leave a Reply