fun foo(f: (Int) -> String) {} fun test() { foo( fun(it: Int): String { return "$it" } ) }