( self: TxHashMap<K, Option.Option<A>> )
| 2017 | * @since 4.0.0 |
| 2018 | */ |
| 2019 | export const compact = <K, A>( |
| 2020 | self: TxHashMap<K, Option.Option<A>> |
| 2021 | ): Effect.Effect<TxHashMap<K, A>> => |
| 2022 | Effect.gen(function*() { |
| 2023 | const currentMap = yield* TxRef.get(self.ref) |
| 2024 | const compactedMap = HashMap.compact(currentMap) |
| 2025 | return yield* fromHashMap(compactedMap) |
| 2026 | }).pipe(Effect.tx) |
| 2027 | |
| 2028 | /** |
| 2029 | * Returns an array of all key-value pairs in the TxHashMap. |
nothing calls this directly
no test coverage detected