ts-data-forge
    Preparing search index...

    Type Alias IMap<K, V>

    IMap: Iterable<readonly [K, V]> & IMapInterface<K, V>

    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

    • K extends MapSetKeyType

      The type of the keys in the map. Must extend MapSetKeyType.

    • V

      The type of the values in the map.