https://kotlinlang.org logo
d

dalexander

01/30/2017, 2:51 PM
I’m curious if there’s a way to de-ambiguate a function reference like
::println
which has multiple definitions with different parameters without doing assignment to a variable. ie.
val stringPrintln: (String) -> Unit = println
assigns the right one but I’d like a means of calling
list.forEach(::println)