MCPcopy
hub / github.com/Effect-TS/effect / randomHashMap

Function randomHashMap

packages/effect/test/Differ.test.ts:71–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71function randomHashMap(): HashMap.HashMap<number, number> {
72 return pipe(
73 Arr.fromIterable(Array.from({ length: 2 }, smallInt)),
74 Arr.cartesian(Arr.fromIterable(Array.from({ length: 2 }, smallInt))),
75 HashMap.fromIterable
76 )
77}
78
79function randomHashSet(): HashSet.HashSet<number> {
80 return HashSet.fromIterable(Array.from({ length: 20 }, smallInt))

Callers

nothing calls this directly

Calls 1

pipeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…