vector-buffer-0.4: A buffer compatible with Data.Vector.*
Data.Vector.Primitive.Buffer
Description
A buffer that can be used as a vector
Synopsis
data Buffer a Source
newBufferSource
Arguments
Size
create a new buffer
pushNextElement :: Prim a => Buffer a -> a -> IO ()Source
add the next element to the buffer
toVector :: Prim a => Buffer a -> IO (Vector a)Source
convert to a vector
mapBufferM :: (Prim a, Prim b) => (a -> IO b) -> Buffer a -> IO (Vector b)Source
monadic map over a buffer
mapBufferM_ :: Prim a => (a -> IO b) -> Buffer a -> IO ()Source