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

Function entries

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

Source from the content-addressed store, hash-verified

914 * @since 4.0.0
915 */
916export const entries = <K, V>(
917 self: TxHashMap<K, V>
918): Effect.Effect<Array<readonly [K, V]>> =>
919 Effect.gen(function*() {
920 const map = yield* TxRef.get(self.ref)
921 return HashMap.toEntries(map)
922 })
923
924/**
925 * 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