nullIfEmpty

inline fun <E> Collection<E>.nullIfEmpty(): Collection<E>?

Return null if this collection is empty, otherwise return this collection.

Since

1.7.02