Ring
scalation.Ring
The Ring
class provides a circular array that can be used to store the latest cap elements. Example to add elements 1, 2, 3, 4, 5, 6, 7 keeping the most recebt 5: [ 1, 2, 3, 4, 5 ] f = 0, l = 4 [ 6, 7, 3, 4, 5 ] f = 2, l = 1
Value parameters
- cap
-
the capacity or maximum number of elements that can be stored
- zero
-
an element that indicates zero for type A
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article