hw-prim-0.6.2.22: Primitive functions and data types

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Vector.Storable

Synopsis

Documentation

foldMap :: (Storable a, Monoid m) => (a -> m) -> Vector a -> m Source #

mapAccumL :: forall a b c. (Storable b, Storable c) => (a -> b -> (a, c)) -> a -> Vector b -> (a, Vector c) Source #

mmap :: Storable a => FilePath -> IO (Vector a) Source #

MMap the file as a storable vector. If the size of the file is not a multiple of the element size in bytes, then the last few bytes of the file will not be included in the vector.

constructSI :: forall a s. Storable a => Int -> (Int -> s -> (s, a)) -> s -> (s, Vector a) Source #

Construct a vector statefully with index