InterviewSolution
Saved Bookmarks
| 1. |
What is a higher-order function? |
|
Answer» A function that TAKES another function as an argument or returns a function is called a higher-order function. For EXAMPLE, the sumApplied() function as defined below is a higher-order function. def sumApplied(x:Int, y:Int, F:Int => Int):Int = f(x) + f(y) |
|