Represents an immutable set with high-performance operations and
comprehensive set algebra support.
ISet is a persistent data structure that provides all the functionality of
JavaScript's Set while maintaining immutability. All operations that would
normally mutate the set instead return new ISet instances, making it safe for
functional programming and concurrent access.
Key Features:
Immutable: All mutation operations return new instances
Set Operations: Full support for union, intersection, difference,
subset/superset checks
Type Safe: Full TypeScript support with generic element types
Iterable: Implements standard JavaScript iteration protocols
Functional: Rich API for map, filter, and functional composition
When to Use:
Managing collections of unique values with immutability guarantees
Set algebra operations (unions, intersections, differences)
Represents an immutable set with high-performance operations and comprehensive set algebra support.
ISet is a persistent data structure that provides all the functionality of JavaScript's Set while maintaining immutability. All operations that would normally mutate the set instead return new ISet instances, making it safe for functional programming and concurrent access.
Key Features:
When to Use: