NotEmptyList
Representation of lists that contain at least one element.
Parameters
The type of elements contained in this list.
Functions
Properties
Extensions
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or returns null
if this collection is empty.
Returns a NotEmptySet containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.