louiscad
04/15/2021, 8:35 PMwasyl
04/15/2021, 8:39 PMfirstNotNullOf, am I missing something but there’s no firstNotNull()? first { it != null } is kind of tedious and I’d probably use firstNotNull() more often than firstNotNullOf()louiscad
04/15/2021, 8:40 PMfirstNotNullOf(a, b, c) is more efficient than any other alternatives thoughwasyl
04/15/2021, 8:51 PMa, b, c here? I thought firstNotNullOf accepts a selector 🤔 I’m just saying I’ll probably have a lot of firstNotNullOf { it } 🙂wasyl
04/15/2021, 8:52 PMlouiscad
04/15/2021, 8:54 PMwasyl
04/15/2021, 8:57 PMa ?: b ?: c no? 😄louiscad
04/15/2021, 8:58 PM