Creates a new IMap instance from an iterable of key-value pairs.
This factory function accepts any iterable of [key, value] tuples,
including arrays, JavaScript Maps, other IMaps, or custom iterables. The
resulting IMap will contain all the entries from the input iterable.
Performance: O(n) where n is the number of entries in the iterable.
Creates a new IMap instance from an iterable of key-value pairs.
This factory function accepts any iterable of [key, value] tuples, including arrays, JavaScript Maps, other IMaps, or custom iterables. The resulting IMap will contain all the entries from the input iterable.
Performance: O(n) where n is the number of entries in the iterable.