Stephan Schroeder
05/15/2020, 3:49 PMfun main() {
listOf("yes", "no").filter(SomeClass::filterYes).forEach{
println(it)
}
}
class SomeClass {
companion object {
fun filterYes(str: String) = str == "yes"
}
}
but it doesn't. You can try it here: https://pl.kotl.in/sHlk5l7V0Stephan Schroeder
05/15/2020, 3:50 PMSomeClass.Companion::filterYes
renghen pajanilingum
05/15/2020, 4:06 PM