Question
What is a partial function in Scala?
Select an option. Your answer will be checked instantly.
Correct Answer: A. A function defined for only part of its input domain
Explanation:
PartialFunction includes logic for testing whether an input is defined.
It is commonly used with pattern-based collection operations.
Leave a Reply