tail

All elements of this collection except the first one.


Calling from Kotlin

Here's an example of calling this property from Kotlin code:

var collection: NotEmptyCollection<Int> = notEmptyListOf(1, 2, 3)
var actual: NotEmptyCollection<Int>? = collection.tail
val expected: NotEmptyCollection<Int> = notEmptyListOf(2, 3)
assertEquals(expected, actual)

collection = notEmptyListOf(-1)
actual = collection.tail
assertNull(actual)