hdirect-0.21.0: An IDL compiler for Haskell

Bag

Documentation

data Bag a Source

unitBag :: a -> Bag aSource

unionBags :: Bag a -> Bag a -> Bag aSource

mapBag :: (a -> b) -> Bag a -> Bag bSource

elemBag :: Eq a => a -> Bag a -> BoolSource

filterBag :: (a -> Bool) -> Bag a -> Bag aSource

partitionBag :: (a -> Bool) -> Bag a -> (Bag a, Bag a)Source

foldBag :: (r -> r -> r) -> (a -> r) -> r -> Bag a -> rSource

consBag :: a -> Bag a -> Bag aSource

snocBag :: Bag a -> a -> Bag aSource

listToBag :: [a] -> Bag aSource

bagToList :: Bag a -> [a]Source