combobuffer-0.2: Various buffer implementations

Safe HaskellNone

Data.RingBuffer.Class

Description

The RingBuffer interface.

A RingBuffer is a fixed-length buffer that supports lookups anywhere in the structure and pushing new elements onto the front. When a new value is pushed, the oldest value will be dropped.

This module provides an implementation based on Vector, with O(1) lookups and O(n) pushes. Other modules provide implementations with different performance profiles.

Synopsis

Documentation

type family El c :: *Source