Companion
object Companion
Contains static declarations for the NotEmptyList type.
Functions
Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
Creates a NotEmptyList containing all the elements of the specified collection, or throws an IllegalArgumentException if the collection is empty.
Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
Creates a NotEmptyList containing all the elements of the specified collection, or returns null
if the collection is empty.
Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
Creates a NotEmptyList starting with a head and containing all the elements of the optional tail.