zucen.co
06/10/2018, 7:00 AM// this is what i kind of need
fun justFunction(i:Int?=1): Int {
return 3
}
val b= justFunction(3)
val a = justFunction()
// but i wat to be able do define this behaviour by labdas
val singleParamFun: (i:Int?=1) -> Unit = ..
val aa = singleParamFun()
val bb = singleParamFun(2)
what does not compile for [Unsupported [default value of parameter in function type]]
how would you appreach this when you want interface for functions wher eyou want to use defaults?