score:9

Accepted answer

For example if you need an implicit parameter of a function type:

implicit def foo(x: Int, y: Int) = y * x

def bar(x: Int, y: Int)(implicit f: (Int, Int) => Int) = f(x,y)

scala> bar(3,4)
res3: Int = 12

Related Query

More Query from same tag