Reputation: 23
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?
Upvotes: 2
Views: 147