Module
Data.List.Lazy.NonEmpty
- Package
- lists
- Repository
- purescript/purescript-lists
#toUnfoldable Source
toUnfoldable :: forall f. Unfoldable f => NonEmptyList ~> f
#fromFoldable Source
fromFoldable :: forall f a. Foldable f => f a -> Maybe (NonEmptyList a)
#singleton Source
singleton :: forall a. a -> NonEmptyList a
#repeat Source
repeat :: forall a. a -> NonEmptyList a
#iterate Source
iterate :: forall a. (a -> a) -> a -> NonEmptyList a
#head Source
head :: forall a. NonEmptyList a -> a
#last Source
last :: 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 a b. (a -> NonEmptyList b) -> NonEmptyList a -> NonEmptyList b
#appendFoldable Source
appendFoldable :: forall t a. Foldable t => NonEmptyList a -> t a -> NonEmptyList a
Re-exports from Data.List.Lazy.Types
#NonEmptyList Source
newtype NonEmptyList a
Constructors
NonEmptyList (Lazy (NonEmpty List a))
Instances
Newtype (NonEmptyList a) _
(Eq a) => Eq (NonEmptyList a)
(Ord a) => Ord (NonEmptyList a)
Eq1 NonEmptyList
Ord1 NonEmptyList
(Show a) => Show (NonEmptyList a)
Functor NonEmptyList
Apply NonEmptyList
Applicative NonEmptyList
Bind NonEmptyList
Monad NonEmptyList
Alt NonEmptyList
Extend NonEmptyList
Comonad NonEmptyList
Semigroup (NonEmptyList a)
Foldable NonEmptyList
Traversable NonEmptyList
Unfoldable1 NonEmptyList
FunctorWithIndex Int NonEmptyList
FoldableWithIndex Int NonEmptyList
TraversableWithIndex Int NonEmptyList