Module

Data.List.Unique

Package
purescript-unique-lists
Repository
colehaus/purescript-unique-lists

#cons Source

cons :: forall a. Ord a => { head :: a, tail :: List a } -> Maybe (List a)

#fromFoldable Source

fromFoldable :: forall f a. Ord a => Functor f => Foldable f => f a -> Either (Set a) (List a)

#head Source

head :: forall b. Ord b => List b -> Maybe b

#map Source

map :: forall a b. Ord b => (a -> b) -> List a -> Either (Set b) (List b)

#tail Source

tail :: forall b. Ord b => List b -> Maybe (List b)

#toUnfoldable Source

toUnfoldable :: forall f a. Unfoldable f => List a -> f a

#traverse Source

traverse :: forall a b m. Applicative m => Ord b => (a -> m b) -> List a -> m (Either (Set b) (List b))

#uncons Source

uncons :: forall b. Ord b => List b -> Maybe { head :: b, tail :: List b }

#unsafeMapBecause Source

unsafeMapBecause :: forall a b. Ord b => String -> (a -> b) -> List a -> List b

#unsafeTraverseBecause Source

unsafeTraverseBecause :: forall a b m. Applicative m => Ord b => String -> (a -> m b) -> List a -> m (List b)

Re-exports from Data.List.Unique.Internal

#List Source

data List a

Instances

#unwrap Source

unwrap :: forall a. List a -> List a