NonEmpty List
A data structure that acts like a list but guarantees that the list always has at least one item.
Functions
Const fromArray
- fromArray<T>(values: readonly T[]): Result<string, NonEmptyList<T>>
-
Type parameters
Parameters
Returns Result<string, NonEmptyList<T>>
Const fromArrayMaybe
- fromArrayMaybe<T>(values: readonly T[]): Maybe<NonEmptyList<T>>
-
Type parameters
Parameters
Const fromValue
-
Type parameters
Parameters