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