cedric
02/08/2018, 11:30 PMif
but it definitely beats Smalltalk’s ifTrue
and ifFalse
Czar
02/09/2018, 8:18 AMproperties.takeIf(Properties::isNotEmpty)?.run { this.forEach { prop -> ... } }
here takeIf
and run
could be merged into something new like runIf
. Seems legit to me 🙂