OverflowPolicy
OverflowPolicy =
"evict"|"skip"
Defined in: packages/data/src/collection/ilossy.ts:15
Overflow policy for bounded collections.
"evict"drops an existing element to make room."skip"drops the incoming element, leaving the collection unchanged.
Which existing element is dropped under "evict" is defined by the ADT
(Queue drops the front, Stack the bottom, Deque the end opposite the
insertion, Heap/PriorityQueue the root), never by the caller — a
positional enum (front/back, oldest/newest) would be ambiguous for a Deque
(inserts at both ends) and meaningless for a heap (no ends at all).