`takeIf` (or `takeUnless`) + a combination of othe...
# getting-started
k
takeIf
(or
takeUnless
) + a combination of other chained method calls optionally + an Elvis at the end seems really elegant to me. Gives you the ability to turn a property or predicate, like
isNotEmpty()
, into a null so that you can use the
?.
and
?:
operators with them