toNotEmptySetOrNull

@SinceKotools(project = Project.Types, version = "1.3")
fun <E> Array<E>.toNotEmptySetOrNull(): NotEmptySet<E>?

Returns a NotEmptySet containing all the elements of this array, or returns null if this array is empty.

@SinceKotools(project = Project.Types, version = "1.3")
fun <E> Collection<E>.toNotEmptySetOrNull(): NotEmptySet<E>?

Returns a NotEmptySet containing all the elements of this collection, or returns null if this collection is empty.