Combining varargs and higher order functions

Viewed 120

Trying to use varargs with higher order functions. But the below doesn't seem to type/compile.

def f(n: Any*) = {...} //compiles
def f(fun: Any* => Any) = {...} // doesn't compile

Is there anyway to use varargs this way?

1 Answers
Related