Safe Haskell | None |
---|
A RingBuffer
implementation based on IntMaps. Operations have the same
complexity as the underlying IntMap
Documentation
class Initializable c whereSource
Create a new Initializable
with the given value at every position.
Essentially a generalized replicate
class RingBuffer c whereSource
The RingBuffer interface.
Instances must define length
, push
, and '(!)'. Instances may define
slice
for better performance.