bounded-array-0.1.0.0: Arrays with a value for every index

Safe HaskellNone
LanguageHaskell2010

Data.Array.Bounded

Documentation

data BoundedArray i e Source #

Instances
Functor (BoundedArray i) Source # 
Instance details

Defined in Data.Array.Bounded

Methods

fmap :: (a -> b) -> BoundedArray i a -> BoundedArray i b #

(<$) :: a -> BoundedArray i b -> BoundedArray i a #

Foldable (BoundedArray i) Source # 
Instance details

Defined in Data.Array.Bounded

Methods

fold :: Monoid m => BoundedArray i m -> m #

foldMap :: Monoid m => (a -> m) -> BoundedArray i a -> m #

foldr :: (a -> b -> b) -> b -> BoundedArray i a -> b #

foldr' :: (a -> b -> b) -> b -> BoundedArray i a -> b #

foldl :: (b -> a -> b) -> b -> BoundedArray i a -> b #

foldl' :: (b -> a -> b) -> b -> BoundedArray i a -> b #

foldr1 :: (a -> a -> a) -> BoundedArray i a -> a #

foldl1 :: (a -> a -> a) -> BoundedArray i a -> a #

toList :: BoundedArray i a -> [a] #

null :: BoundedArray i a -> Bool #

length :: BoundedArray i a -> Int #

elem :: Eq a => a -> BoundedArray i a -> Bool #

maximum :: Ord a => BoundedArray i a -> a #

minimum :: Ord a => BoundedArray i a -> a #

sum :: Num a => BoundedArray i a -> a #

product :: Num a => BoundedArray i a -> a #

Integral i => Traversable (BoundedArray i) Source # 
Instance details

Defined in Data.Array.Bounded

Methods

traverse :: Applicative f => (a -> f b) -> BoundedArray i a -> f (BoundedArray i b) #

sequenceA :: Applicative f => BoundedArray i (f a) -> f (BoundedArray i a) #

mapM :: Monad m => (a -> m b) -> BoundedArray i a -> m (BoundedArray i b) #

sequence :: Monad m => BoundedArray i (m a) -> m (BoundedArray i a) #

(Integral i, Eq e) => Eq (BoundedArray i e) Source # 
Instance details

Defined in Data.Array.Bounded

Methods

(==) :: BoundedArray i e -> BoundedArray i e -> Bool #

(/=) :: BoundedArray i e -> BoundedArray i e -> Bool #

(Integral i, Ord e) => Ord (BoundedArray i e) Source # 
Instance details

Defined in Data.Array.Bounded

(Integral i, Show i, Show e) => Show (BoundedArray i e) Source # 
Instance details

Defined in Data.Array.Bounded

(!) :: (Bounded i, Integral i) => BoundedArray i e -> i -> e Source #

(//) :: (Bounded i, Integral i) => BoundedArray i e -> [(i, e)] -> BoundedArray i e Source #

listArrayFill :: (Bounded i, Integral i) => e -> [e] -> BoundedArray i e Source #

accumArrayBounded :: (Bounded i, Integral i) => (e -> a -> e) -> e -> [(i, a)] -> BoundedArray i e Source #