Raul has more experience with these, he can probab...
# arrow
p
Raul has more experience with these, he can probably give you a better idea. My hacky solution is
list.flatMap(optional -> optional.fold({listOf()}, {listOf(it)})).let { if (it.isEmpty()) { none() } else { it.some() } }