toNotEmptyList
Returns a NotEmptyList containing all the elements of this collection, or returns an IllegalArgumentException if this collection is empty.
Returns a NotEmptyList containing all the elements of this collection, or returns an IllegalArgumentException if this collection is empty.