/** * Constructs a new `HashMap` from an array of key/value pairs. * * @tsplus static HashMap.Ops from */ export function from( entries: Collection ): HashMap { const map = HashMap.empty().beginMutation for (const entry of entries) { map.set(entry[0], entry[1]) } return map.endMutation }