1.0.2
Version 1.0.2
is released.
Changed whatIfNotNullOrEmpty
collections separated toList
and Set
.
In whatIfNotNullOrEmpty
, whatIf lambda will receive not-null type collection type.
Implemented whatIfNotNullAs
.
If the target is not null, the receiver will get a casted type.
var nullableIntList: MutableList<Int>? = null
nullableIntList.whatIfNotNullAs<List<Int>> {
nullableInt = it.size
}