Skip to content

1.0.2

Compare
Choose a tag to compare
@skydoves skydoves released this 10 Sep 10:28
970f392

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
}