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

Function shuffle

packages/effect/src/internal/stm/tRandom.ts:139–140  ·  view source on GitHub ↗
(elements: Iterable<A>)

Source from the content-addressed store, hash-verified

137
138/** @internal */
139export const shuffle = <A>(elements: Iterable<A>): STM.STM<Array<A>, never, TRandom.TRandom> =>
140 core.flatMap(Tag, (random) => random.shuffle(elements))

Callers

nothing calls this directly

Calls 1

shuffleMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…