With Scala 2.10+ String Interpolation can be made. So I have this question. How can you do this:
println(f"$foo(100,51)%1.0f" )
considering foo is a function like:
def foo(x1:Int , x2:Int) : Double = { ... }
From what I understand the way this is evaluated makes foo considered to have no arguments beacause the message I get is :
missing arguments for method foo in object bar;
follow this method with `_' if you want to treat it as a partially applied function
I tried using parenthesis but errors still occur.