Non Empty Set
Constructors
Functions
Properties
Extensions
Combines two structures by taking the union of their shapes and combining the elements with the given function.
Combines two structures by taking the union of their shapes and using Ior to hold the elements.
Returns the first element as Some(element), or None if the iterable is empty.
Returns the first element as Some(element) matching the given predicate, or None if element was not found.
Flatten a list of Either into a single Either with a list of values, or accumulates all errors using combine.
Flatten a list of Either into a single Either with a list of values, or accumulates all errors with into an NonEmptyList.
Returns the last element as Some(element), or None if the iterable is empty.
Returns the last element as Some(element) matching the given predicate, or None if no such element was found.
Returns a List containing the result of applying some transformation (A?, B) -> C on a zip, excluding all cases where the right value is null.
Returns a List> containing the zipped values of the two lists with null for padding on the left.
Returns Either a List containing the results of applying the given transform function to each element in the original collection, or accumulate all the logical errors that were raised while transforming the collection. The combine function is used to accumulate all the logical errors.
Returns Either a List containing the results of applying the given transform function to each element in the original collection, or accumulate all the logical errors into a NonEmptyList that were raised while applying the transform function.
Returns a List> containing the zipped values of the two lists with null for padding.
Returns a List containing the result of applying some transformation (A?, B?) -> C on a zip.
Returns a List containing the result of applying some transformation (A, B?) -> C on a zip, excluding all cases where the left value is null.
Returns a List> containing the zipped values of the two lists with null for padding on the right.
Separate the inner Either values into the Either.Left and Either.Right.
Separate the inner Validated values into the Validated.Invalid and Validated.Valid.
Returns single element as Some(element), or None if the iterable is empty or has more than one element.
Returns the single element as Some(element) matching the given predicate, or None if element was not found or more than one element was found.