new AppendOnlyStackedSet(): AppendOnlyStackedSet<T>Returns:
AppendOnlyStackedSet<T>Returns:
Iterator<T>Iterates over the stacked sets from newest to oldest so consumers can inspect recently added values first.
M
add
add(el): voidAttributes
el:
TReturns:
voidAdds a value to the current scope layer, creating that layer lazily when the first write occurs.
clear(): voidReturns:
voidRemoves every scope layer and any values accumulated in them.
createChild(): AppendOnlyStackedSet<T>Returns:
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.
M
has
has(el): booleanAttributes
el:
TReturns:
booleanChecks whether a value is present in any scope layer currently visible to this stacked set.