/** * Creates a new `ImmutableMap` from a set of entries. * * @tsplus static ImmutableMap.Ops from */ export function from( entries: Collection ): ImmutableMap { const map = new Map() for (const [key, value] of entries) { map.set(key, value) } return new ImmutableMap(map) }