import * as tsplus_module_1 from "@effect/core/stm/TMap/operations/fold";
/**
 * Collects all bindings into a map.
 *
 * @tsplus getter ets/TMap toMap
 */

export function toMap(self) {
  return tsplus_module_1.fold_(self, new Map(), (acc, kv) => acc.set(kv.get(0), kv.get(1)));
}
//# sourceMappingURL=toMap.mjs.map