christophsturm
fun mf(method: suspend () -> String) { } fun mf(method: suspend (String) -> String) { }
mf({string->"string"})
mf({"string"}) // fails with overload resolution ambiguity
Shawn
where the only difference in signature is the number of parameters that their lambda takes
mf({->"string"})
Matteo Mirk
() -> String
(String) -> String
A modern programming language that makes developers happier.