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): voidel{T}- Returns: {void}
Adds a value to the current scope layer, creating that layer lazily when the first write occurs.
clear(): voidReturns:
{void}
Removes 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): voidel{T}- Returns:
<boolean>
Checks whether a value is present in any scope layer currently visible to this stacked set.