kevinmost
06/22/2017, 8:41 PMtakeIf (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