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

Function keys

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

Source from the content-addressed store, hash-verified

845 * @since 2.0.0
846 */
847export const keys = <K, V>(self: TxHashMap<K, V>): Effect.Effect<Array<K>> =>
848 Effect.gen(function*() {
849 const map = yield* TxRef.get(self.ref)
850 return Array.from(HashMap.keys(map))
851 })
852
853/**
854 * Returns an array of all values in the TxHashMap.

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected