def checkforSimpleFunctional(p:Int, q:Int, test : (Int, Int) => Double) = test(p, q) println(checkforSimpleFunctional(2, 3, (a:Int, b:Int) => a + b))
fun checkforSimpleFunctional(p:Int, q:Int, test : (Int, Int) -> Double):Double{ return test(p, q) } println(checkforSimpleFunctional(2, 3){ a, b -> (a + b).toDouble() })