hw-prim-0.6.2.20: 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.