Join Slack
Powered by
Not really Arrow solution, but with standard kotli...
# arrow
g
gildor
04/09/2019, 5:29 AM
Not really Arrow solution, but with standard kotlin collections API I would do this, if A is non-nullable:
Copy code
listOf(Some(1),Some(2),None,None).mapNonNull { it.getOrElse { null } }
👍🏼 1
Open in Slack
Previous
Next