Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data EqT a b where
- data ExistsEqT t n where
- data Nat
- data Natural (n :: Nat) where
- data Vec (n :: Nat) a where
- data VecBox a where
- data VecList a where
- (!!) :: Vec n a -> Int -> a
- findIndex :: (a -> Bool) -> Vec n a -> Maybe Int
- fromList :: [a] -> VecBox a
- fromLists :: forall a. [[a]] -> VecList a
- length :: Vec n a -> Int
- lengthN :: Vec n a -> Natural n
- proveEqSize :: Vec n a -> Vec m b -> Maybe (EqT m n)
- proveNonEmpty :: Vec n a -> Maybe (ExistsEqT 'S n)
- replace :: Int -> a -> Vec n a -> Vec n a
- toList :: Vec n a -> [a]
- zip :: Vec n a -> Vec n b -> Vec n (a, b)
- zipWith :: (a -> b -> c) -> Vec n a -> Vec n b -> Vec n c
Datatypes
data Vec (n :: Nat) a where Source #
Instances
Functor (Vec n) Source # | |
Foldable (Vec n) Source # | |
Defined in Camfort.Helpers.Vec fold :: Monoid m => Vec n m -> m # foldMap :: Monoid m => (a -> m) -> Vec n a -> m # foldMap' :: Monoid m => (a -> m) -> Vec n a -> m # foldr :: (a -> b -> b) -> b -> Vec n a -> b # foldr' :: (a -> b -> b) -> b -> Vec n a -> b # foldl :: (b -> a -> b) -> b -> Vec n a -> b # foldl' :: (b -> a -> b) -> b -> Vec n a -> b # foldr1 :: (a -> a -> a) -> Vec n a -> a # foldl1 :: (a -> a -> a) -> Vec n a -> a # elem :: Eq a => a -> Vec n a -> Bool # maximum :: Ord a => Vec n a -> a # minimum :: Ord a => Vec n a -> a # | |
Eq a => Eq (Vec n a) Source # | |
Ord a => Ord (Vec n a) Source # | |
Show a => Show (Vec n a) Source # | |
PartialOrd a => PartialOrd (Vec n a) Source # | |
Defined in Camfort.Specification.Stencils.Model | |
BoundedMeetSemiLattice a => Lattice (UnionNF n a) | |