Join Slack
Communities
Powered by
<@UB462TL5B> you could use `takeIf` (<https://kotl...
# getting-started
a
Andreas Sinz
06/27/2018, 8:29 AM
@Daniele Segato
you could use
takeIf
(
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/take-if.html
) like
when() {}.takeIf { it == "foo"} ?: /* else */
Open in Slack
Previous
Next