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 a f. 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 b a. 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 a f. Unfoldable f => List a -> f a

#traverse Source

traverse :: forall m b a. 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 b a. Ord b => String -> (a -> b) -> List a -> List b

#unsafeTraverseBecause Source

unsafeTraverseBecause :: forall m b a. 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