hw-prim-0.6.3.2: Primitive functions and data types

Safe Haskell | None
Language | Haskell2010

HaskellWorks.Data.Vector.StorableVectorLike

Synopsis

- class StorableVectorLike (v :: Type -> Type) e where
  - sImap :: (Storable a, Storable b) => (Int -> a -> b) -> v a -> v b
  - sMap :: (Storable a, Storable b) => (a -> b) -> v a -> v b
  - sUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> v a
  - sUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> v a

# Documentation

class StorableVectorLike (v :: Type -> Type) e where #

Class of values that support storable vector like operations

Methods

sImap :: (Storable a, Storable b) => (Int -> a -> b) -> v a -> v b #

sMap :: (Storable a, Storable b) => (a -> b) -> v a -> v b #

sUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> v a #

sUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> v a #

#### Instances

Instances details

StorableVectorLike Vector Word16 # |
Instance details Defined in HaskellWorks.Data.Vector.StorableVectorLike Methods sImap :: (Storable a, Storable b) => (Int -> a -> b) -> Vector a -> Vector b # sMap :: (Storable a, Storable b) => (a -> b) -> Vector a -> Vector b # sUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # sUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #
StorableVectorLike Vector Word32 # |
Instance details Defined in HaskellWorks.Data.Vector.StorableVectorLike Methods sImap :: (Storable a, Storable b) => (Int -> a -> b) -> Vector a -> Vector b # sMap :: (Storable a, Storable b) => (a -> b) -> Vector a -> Vector b # sUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # sUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #
StorableVectorLike Vector Word64 # |
Instance details Defined in HaskellWorks.Data.Vector.StorableVectorLike Methods sImap :: (Storable a, Storable b) => (Int -> a -> b) -> Vector a -> Vector b # sMap :: (Storable a, Storable b) => (a -> b) -> Vector a -> Vector b # sUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # sUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #
StorableVectorLike Vector Word8 # |
Instance details Defined in HaskellWorks.Data.Vector.StorableVectorLike Methods sImap :: (Storable a, Storable b) => (Int -> a -> b) -> Vector a -> Vector b # sMap :: (Storable a, Storable b) => (a -> b) -> Vector a -> Vector b # sUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # sUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #