fun applyTwice(f: (A) -> A, x: A) = f(f(x)) val x = applyTwice({ x -> x + 1 }, 40)