comfort-array-0.5.5: Arrays where the index type is a function of the shape type
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Array.Comfort.Bool

Description

Can be an alternative to the enumset package.

Documentation

data Array sh Source #

shape :: Array sh -> sh Source #

reshape :: (C sh0, C sh1) => sh1 -> Array sh0 -> Array sh1 Source #

mapShape :: (C sh0, C sh1) => (sh0 -> sh1) -> Array sh0 -> Array sh1 Source #

fromList :: Indexed sh => sh -> [Index sh] -> Array sh Source #

toList :: InvIndexed sh => Array sh -> [Index sh] Source #

fromSet :: (Indexed sh, Index sh ~ ix, Ord ix) => sh -> Set ix -> Array sh Source #

toSet :: (InvIndexed sh, Index sh ~ ix, Ord ix) => Array sh -> Set ix Source #

member :: Indexed sh => Index sh -> Array sh -> Bool Source #

union :: (Indexed sh, Eq sh) => Array sh -> Array sh -> Array sh Source #

difference :: (Indexed sh, Eq sh) => Array sh -> Array sh -> Array sh Source #

intersection :: (Indexed sh, Eq sh) => Array sh -> Array sh -> Array sh Source #