( self: TxHashMap<K, Option.Option<A>> )
| 2060 | * @since 4.0.0 |
| 2061 | */ |
| 2062 | export const compact = <K, A>( |
| 2063 | self: TxHashMap<K, Option.Option<A>> |
| 2064 | ): Effect.Effect<TxHashMap<K, A>> => |
| 2065 | Effect.gen(function*() { |
| 2066 | const currentMap = yield* TxRef.get(self.ref) |
| 2067 | const compactedMap = HashMap.compact(currentMap) |
| 2068 | return yield* fromHashMap(compactedMap) |
| 2069 | }).pipe(Effect.tx) |
| 2070 | |
| 2071 | /** |
| 2072 | * Returns an array of all key-value pairs in the TxHashMap. |
nothing calls this directly
no test coverage detected