scala> def mytest(x:String, f:String=>Int):Int = f(x) def mytest(x: String, f: String => Int): Int
f is a functional value I know. It accepts String as its argument for now.
Can f accepts another functional value as its argument? if so how to write?
(I tried to write it which doesn’t work).