Ok,before someone reminds me that this is JavaGaming.org and not ScalaGaming.org Scala still runs on the JAVA virtual machine, so take that!
Lets say we have two anonymous functions (or lambdas) :
val f1 = (x:Int) => x-1
val f2 = (x:Int) => -x+1
How do we find the value of x that will result in the same output?
So the method signature would look somthing like this :
type Function = Int => Int
def intercept(a:Function, b:Function):Int = ????????