Join Slack
Powered by
perhaps what I'm looking for is `mapNotUnit` so th...
# getting-started
n
nkiesel
03/17/2017, 4:15 PM
perhaps what I'm looking for is
mapNotUnit
so that I could do
listOf(1,2,3).mapNotUnit { if (it %2 != 0) "hi ${it}" else Unit }
. But questionable if that is really better than using
null
as
unwanted
Open in Slack
Previous
Next