3 lines
95 B
Plaintext
Vendored
3 lines
95 B
Plaintext
Vendored
fun applyTwice<A>(f: (A) -> A, x: A) = f(f(x))
|
|
val x = applyTwice({ it -> <caret>it + 1 }, 40)
|