Say I had a lambda expression something like:
val ex = (x:Int) => x x
what is the type of this expression/how do I know its type? I've tried using "Any" as the function parameter type that didn't work and if I try to get it's type using the .getClass.getSimpleName function I get an object address.
CodePudding user response: