( ...entries: Array<readonly [K, V]> )
| 292 | * @since 2.0.0 |
| 293 | */ |
| 294 | export const make = <K, V>( |
| 295 | ...entries: Array<readonly [K, V]> |
| 296 | ): Effect.Effect<TxHashMap<K, V>> => |
| 297 | Effect.gen(function*() { |
| 298 | const hashMap = HashMap.make(...entries) |
| 299 | const ref = yield* TxRef.make(hashMap) |
| 300 | return Object.assign(Object.create(TxHashMapProto), { ref }) |
| 301 | }) |
| 302 | |
| 303 | /** |
| 304 | * Creates a TxHashMap from an iterable of key-value pairs. |