hw-prim-0.4.0.3: 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

Minimal complete definition

bImap, bMap, bUnfoldr, bUnfoldrN

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 # 

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 # 

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 # 

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 # 

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 #