`getItems().first(default).map{ it.isNotEmpty() }`...
# rx
e
getItems().first(default).map{ it.isNotEmpty() }
should do the trick
k
neat! and i guess passing in an empty list for the default value should work right?
getItems().first(default=listOf()).map{ it.isNotEmpty() }
e
The default just depends on your case
k
makes sense. thank you 🙂