HaskellWorks.Data.Vector.BoxedVectorLike

hw-prim-0.6.3.2: Primitive functions and data types

Safe Haskell | None
Language | Haskell2010

HaskellWorks.Data.Vector.BoxedVectorLike

Synopsis

- class BoxedVectorLike (v :: Type -> Type) e where
  - bImap :: (Int -> a -> b) -> v a -> v b
  - bMap :: (a -> b) -> v a -> v b
  - bUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> v a
  - bUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> v a

# Documentation

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

Class of values that support boxed vector like operations

Methods

bImap :: (Int -> a -> b) -> v a -> v b #

bMap :: (a -> b) -> v a -> v b #

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

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

#### Instances

Instances details

BoxedVectorLike Vector Word16 # |
Instance details Defined in HaskellWorks.Data.Vector.BoxedVectorLike Methods bImap :: (Int -> a -> b) -> Vector a -> Vector b # bMap :: (a -> b) -> Vector a -> Vector b # bUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # bUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #
BoxedVectorLike Vector Word32 # |
Instance details Defined in HaskellWorks.Data.Vector.BoxedVectorLike Methods bImap :: (Int -> a -> b) -> Vector a -> Vector b # bMap :: (a -> b) -> Vector a -> Vector b # bUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # bUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #
BoxedVectorLike Vector Word64 # |
Instance details Defined in HaskellWorks.Data.Vector.BoxedVectorLike Methods bImap :: (Int -> a -> b) -> Vector a -> Vector b # bMap :: (a -> b) -> Vector a -> Vector b # bUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # bUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #
BoxedVectorLike Vector Word8 # |
Instance details Defined in HaskellWorks.Data.Vector.BoxedVectorLike Methods bImap :: (Int -> a -> b) -> Vector a -> Vector b # bMap :: (a -> b) -> Vector a -> Vector b # bUnfoldr :: Storable a => (b -> Maybe (a, b)) -> b -> Vector a # bUnfoldrN :: Storable a => Int -> (b -> Maybe (a, b)) -> b -> Vector a #