ABList-0.0.3: An alternating list of two types

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.AbneList

Documentation

data AbneList a b Source

Constructors

a :// (AbList b a) infixr 5 

Instances

(Eq a, Eq b) => Eq (AbneList a b) 
(Ord a, Ord b) => Ord (AbneList a b) 
(Show a, Show b) => Show (AbneList a b) 

abneShallowFold :: (a -> AbList b a -> t) -> AbneList a b -> t Source

aaneToList :: AbneList a a -> [a] Source

aaneMap :: (a -> b) -> AbneList a a -> AbneList b b Source

abneFoldr :: (Either a b -> t -> t) -> t -> AbneList a b -> t Source

abneFoldr' :: (a -> t -> t) -> (b -> t -> t) -> t -> AbneList a b -> t Source

abneFoldl :: (t -> Either a b -> t) -> t -> AbneList a b -> t Source

abneFoldl' :: (t -> a -> t) -> (t -> b -> t) -> t -> AbneList a b -> t Source

abneZip :: [a] -> [b] -> Maybe (AbneList a b) Source

abneFromPairs :: [(a, b)] -> Maybe (AbneList a b) Source