MCPcopy Create free account
hub / github.com/Effect-TS/effect / entries

Function entries

packages/effect/src/TxHashMap.ts:936–942  ·  view source on GitHub ↗
(
  self: TxHashMap<K, V>
)

Source from the content-addressed store, hash-verified

934 * @since 4.0.0
935 */
936export const entries = <K, V>(
937 self: TxHashMap<K, V>
938): Effect.Effect<Array<readonly [K, V]>> =>
939 Effect.gen(function*() {
940 const map = yield* TxRef.get(self.ref)
941 return HashMap.toEntries(map)
942 })
943
944/**
945 * Returns an immutable snapshot of the current TxHashMap state.

Callers 2

TxHashMap.tsFile · 0.70
toEntriesFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected