hw-prim-0.6.2.20: Primitive functions and data types

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Vector.BoxedVectorLike

Synopsis

Documentation

class BoxedVectorLike v e where Source #

Class of values that support boxed vector like operations

Methods

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

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

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

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

Instances
BoxedVectorLike Vector Word8 Source # 
Instance details

Defined in HaskellWorks.Data.Vector.BoxedVectorLike

Methods

bImap :: (Int -> a -> b) -> Vector a -> Vector b Source #

bMap :: (a -> b) -> Vector a -> Vector b Source #

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

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

BoxedVectorLike Vector Word16 Source # 
Instance details

Defined in HaskellWorks.Data.Vector.BoxedVectorLike

Methods

bImap :: (Int -> a -> b) -> Vector a -> Vector b Source #

bMap :: (a -> b) -> Vector a -> Vector b Source #

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

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

BoxedVectorLike Vector Word32 Source # 
Instance details

Defined in HaskellWorks.Data.Vector.BoxedVectorLike

Methods

bImap :: (Int -> a -> b) -> Vector a -> Vector b Source #

bMap :: (a -> b) -> Vector a -> Vector b Source #

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

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

BoxedVectorLike Vector Word64 Source # 
Instance details

Defined in HaskellWorks.Data.Vector.BoxedVectorLike

Methods

bImap :: (Int -> a -> b) -> Vector a -> Vector b Source #

bMap :: (a -> b) -> Vector a -> Vector b Source #

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

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