Let's consider the function:
def foo(implicit a:Int, b:String) = println(a,b)
.
Now, let us assume that there is an implicit String
and Int
(implicit val i1=1
) in scope but we want to pass an other, not implicit Int
(val i2=2
) explicitly to foo
.
How can we do that ? Is it possible? Thanks for reading.