On this page

new AppendOnlyStackedSet(): AppendOnlyStackedSet<T>
Returns:Iterator<T>

Iterates over the stacked sets from newest to oldest so consumers can inspect recently added values first.


add(el): void
Attributes
el:T
Returns:void

Adds a value to the current scope layer, creating that layer lazily when the first write occurs.


clear(): void
Returns:void

Removes every scope layer and any values accumulated in them.


createChild(): AppendOnlyStackedSet<T>

Creates a child stacked set that shares the existing scope history while allowing subsequent additions to be recorded in its own new layer.


has(el): boolean
Attributes
el:T
Returns:boolean

Checks whether a value is present in any scope layer currently visible to this stacked set.