Module
Data.List.NonEmpty
- Package
- purescript-lists
- Repository
- purescript/purescript-lists
#toUnfoldable Source
toUnfoldable :: forall f. Unfoldable f => NonEmptyList ~> f#fromFoldable Source
fromFoldable :: forall a f. Foldable f => f a -> Maybe (NonEmptyList a)#singleton Source
singleton :: forall a. a -> NonEmptyList a#head Source
head :: forall a. NonEmptyList a -> a#uncons Source
uncons :: forall a. NonEmptyList a -> { head :: a, tail :: List a }#length Source
length :: forall a. NonEmptyList a -> Int#concatMap Source
concatMap :: forall b a. (a -> NonEmptyList b) -> NonEmptyList a -> NonEmptyList b#appendFoldable Source
appendFoldable :: forall a t. Foldable t => NonEmptyList a -> t a -> NonEmptyList aRe-exports from Data.List.Types
#NonEmptyList Source
newtype NonEmptyList aConstructors
NonEmptyList (NonEmpty List a)
Instances
Newtype (NonEmptyList a) _(Eq a) => Eq (NonEmptyList a)(Ord a) => Ord (NonEmptyList a)(Show a) => Show (NonEmptyList a)Functor NonEmptyListApply NonEmptyListApplicative NonEmptyListBind NonEmptyListMonad NonEmptyListAlt NonEmptyListExtend NonEmptyListComonad NonEmptyListSemigroup (NonEmptyList a)Foldable NonEmptyListTraversable NonEmptyList