A non-empty list
A NonEmpty is like a list, but never empty.
access field neHead
The head of the non-empty list. The tail of the non-empty list.
Constructs a non-empty list with the given head and tail.
Constructs a non-empty list with the given head and tail (an alias for nonEmpty).
Tries to convert a list to a NonEmpty returning Maybe.Nothing if the given list is empty.
Converts a list to a NonEmpty using the given default value for the empty list case.
WARNING: Fails if given the empty list.
Tries to convert a list to a NonEmpty.
Prepends a value to a NonEmpty.
Reverses the elements of the (finite) NonEmpty.
scanl is similar to foldl, but returns a NonEmpty of successive reduced values from the left
scanl1 is similar to foldl1, but returns a NonEmpty of successive reduced values from the left
scanr is similar to foldr, but returns a NonEmpty of successive reduced values from the right
scanr1 is similar to foldr1, but returns a NonEmpty of successive reduced values from the right
iterate f x returns an infinite NonEmpty of repeated applications of f to x
cycle ties a finite NonEmpty into a circular one, or equivalently, the infinite repetition of the original NonEmpty. It is the identity on infinite NonEmptys.
The inits function returns all initial segments of the argument, shortest first.
The tails function returns all final segments of the argument, longest first.
The sort function implements a stable sorting algorithm.
The insert function takes an element and a NonEmpty and inserts the element into the NonEmpty at the last position where it is still less than or equal to the next element.
unzip transforms a NonEmpty of pairs into a NonEmpty of first components and a NonEmpty of second components.
zip takes two NonEmptys and returns a NonEmpty of corresponding pairs. If one input NonEmptys is short, excess elements of the longer NonEmpty are discarded.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Foldable.fold
inherited from Foldable.fold1
inherited from Foldable.foldMap
inherited from Foldable.foldMap1
inherited from Foldable.foldl1
inherited from Foldable.foldr1
inherited from ListMonoid.concat
inherited from Applicative.*>
inherited from Applicative.<*
inherited from Monad.<*>
inherited from Monad.>>
inherited from Monad.join
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Semigroup.sconcat
inherited from Semigroup.stimes
inherited from Show.display
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
inherited from Show.showsub
inherited from Traversable.mapM
inherited from Traversable.sequence
inherited from Traversable.sequenceA
Ord_NonEmpty.>=, Ord_NonEmpty.<, Ord_NonEmpty.<=, Ord_NonEmpty.>
Show_NonEmpty.showsub, Show_NonEmpty.display, Show_NonEmpty.show