Ellen Spertus
11/18/2019, 7:32 PMwhen as an expression, can there be multiple statements in an arm?Daniel Rampelt
11/18/2019, 7:34 PM-> { ... } and put multiple lines and statements between the {}Ellen Spertus
11/18/2019, 7:35 PMDaniel Rampelt
11/18/2019, 7:35 PMval result = when (x) {
condition -> {
statement
another statement
last statement is the value
}
}Ellen Spertus
11/18/2019, 7:36 PMDaniel Rampelt
11/18/2019, 7:36 PMAndy Gibel
11/18/2019, 7:52 PMHullaballoonatic
11/18/2019, 11:17 PMHullaballoonatic
11/18/2019, 11:17 PMHullaballoonatic
11/18/2019, 11:20 PMif/else and scoped functions (let, run, etc...) as wellEllen Spertus
11/18/2019, 11:21 PM