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

Function values

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

Source from the content-addressed store, hash-verified

884 * @since 2.0.0
885 */
886export const values = <K, V>(self: TxHashMap<K, V>): Effect.Effect<Array<V>> =>
887 Effect.gen(function*() {
888 const map = yield* TxRef.get(self.ref)
889 return HashMap.toValues(map)
890 })
891
892/**
893 * Returns an array of all key-value pairs in the TxHashMap.

Callers 1

toValuesFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected