pavel
10/07/2019, 5:47 PMfun pairTest(foo: Boolean, bar: Boolean) =
when (foo to bar) {
(true to true) -> 1
(true to false) -> 2
(false to true) -> 3
(false to false) -> 4
}
IntelliJ is saying that I need an else branch here. How come? And is there a better way to do this?streetsofboston
10/07/2019, 5:51 PMwhen
conditions.raulraja
10/07/2019, 5:52 PMAndy Gibel
10/07/2019, 5:53 PMpavel
10/07/2019, 5:55 PM