abstract class HashSetNonEmptyBase<T>
undocumented
Extends: NonEmptyBase<E>
Extended by: HashSetBlock<T>, HashSetCollision<T>
Type parameters
| Name | Description |
|---|---|
| T | undocumented |
Properties
_NonEmptyType
undocumented
_NonEmptyTypecontext
undocumented
contextDefinition
abstract get context(): HashSetContext<T>;
isEmpty
Returns false since the collection is known to be non-empty.
isEmptyfalse since the collection is known to be non-empty.Methods
[Symbol.iterator]
Returns a fast iterator over the elements of the collection.
[Symbol.iterator]add
undocumented
addaddAll
undocumented
addAllDefinition
addAll(values: StreamSource<T>): HashSet.NonEmpty<T>;
Parameters
| Name | Type | Description |
|---|---|---|
values | StreamSource<T> |
asNormal
undocumented
asNormalassumeNonEmpty
Returns this, since the collection is already known to be non-empty.
assumeNonEmptythis, since the collection is already known to be non-empty.difference
undocumented
differenceDefinition
difference(other: StreamSource<T>): HashSet<T>;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |
filter
undocumented
filterforEach
undocumented
forEachDefinition
abstract forEach(f: (value: T, index: number, halt: () => void) => void, options?: {
state?: TraverseState;
}): void;
Parameters
| Name | Type | Description |
|---|---|---|
f | (value: T, index: number, halt: () => void) => void | |
options | {state?: TraverseState;} |
has
undocumented
hasintersect
undocumented
intersectDefinition
intersect(other: StreamSource<T>): HashSet<T>;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |
nonEmpty
Returns true and instructs the compiler to treat the instance as non-empty.
nonEmptytrue and instructs the compiler to treat the instance as non-empty.remove
undocumented
removeremoveAll
undocumented
removeAllDefinition
removeAll(values: StreamSource<T>): HashSet<T>;
Parameters
| Name | Type | Description |
|---|---|---|
values | StreamSource<T> |
stream
undocumented
streamsymDifference
undocumented
symDifferenceDefinition
symDifference(other: StreamSource<T>): HashSet<T>;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |
toArray
undocumented
toArrayDefinition
abstract toArray(): ArrayNonEmpty<T>;
union
undocumented
unionDefinition
union(other: StreamSource<T>): HashSet.NonEmpty<T>;
Parameters
| Name | Type | Description |
|---|---|---|
other | StreamSource<T> |