package ringo
Module Ringo.RingSource
Imperative Ring Buffer
An imperative ring buffer: a mutable structure that holds at most a fixed number of values of a same type. Values are never removed, once the limit is reached, adding a value replaces the oldest one in the ring buffer.
Same as add, but returns the dropped value if any.
Iterates over the elements, oldest to newest.