tail

open override val tail: NotEmptySet<E>?

All elements of this collection except the first one.

Here's a simple usage example:

var collection: NotEmptyCollection<Int> = notEmptyListOf(1, 2, 3)
var result: NotEmptyCollection<Int>? = collection.tail
println(result) // [2, 3]

collection = notEmptyListOf(-1)
result = collection.tail
println(result) // null