Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Ringo.Ring
SourceImperative 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.