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