Represents an immutable map with high-performance operations and functional
programming support.
IMap is a persistent data structure that provides all the functionality of
JavaScript's Map while maintaining immutability. All operations that would
normally mutate the map instead return new IMap instances, making it safe for
functional programming and concurrent access.
Key Features:
Immutable: All mutation operations return new instances
Type Safe: Full TypeScript support with generic key/value types
Iterable: Implements standard JavaScript iteration protocols
Functional: Rich API for map, filter, reduce-style operations
When to Use:
State management in functional applications
Caching with immutable guarantees
Data structures that need to be shared across components
When you need Map functionality but want immutability
Type Parameters
KextendsMapSetKeyType
The type of the keys in the map. Must extend MapSetKeyType.
Represents an immutable map with high-performance operations and functional programming support.
IMap is a persistent data structure that provides all the functionality of JavaScript's Map while maintaining immutability. All operations that would normally mutate the map instead return new IMap instances, making it safe for functional programming and concurrent access.
Key Features:
When to Use: