NotEmptyList

fun <E> NotEmptyList(head: E, vararg tail: E): NotEmptyList<E>

Deprecated

Use the notEmptyListOf function instead.

Replace with

import kotools.types.collections.notEmptyListOf
notEmptyListOf<E>(head, *tail)

Creates a NotEmptyList starting with a head and containing all the elements of the optional tail.