dblack
02/27/2017, 5:01 PMwhen (someCalculatedValue()) {
1 -> doSomething(/*use value here*/)
else -> log("nothing")
}mg6maciej
02/27/2017, 5:06 PMdoSomething(1) 😉dblack
02/27/2017, 5:12 PMdblack
02/27/2017, 5:13 PMdblack
02/27/2017, 5:13 PMmg6maciej
02/27/2017, 5:14 PMmg6maciej
02/27/2017, 5:14 PMval value = call() then when (value) {, but you know that.mg6maciej
02/27/2017, 5:16 PMvariable?.let { } with else if value is null.