In Scala there are high order functions, which from what I understand either function that return function or function that accept function.
this for example is high order function that takes function from Int to Int:
def highOrderFunc(f: Int => Int) = {
???
}
why when i call highOrderFunc with List(1,2,3)
it compiles? from this signature I though I need to pass a function...im confused here, can someone explain this please?