fun T.map(f: (T) -> U) = f(this) fun consume(s: String) {} fun test() { consume(1.map(::foo)) }