Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.RRBVector.Internal.Buffer
Description
Documentation
new :: Int -> ST s (Buffer s a) Source #
\(O(n)\). Create a new empty buffer with the given capacity.
push :: Buffer s a -> a -> ST s () Source #
\(O(1)\). Push a new element onto the buffer. The size of the buffer must not exceed the capacity, but this is not checked.