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

Function shuffle

packages/effect/src/internal/defaultServices.ts:133–134  ·  view source on GitHub ↗
(elements: Iterable<A>)

Source from the content-addressed store, hash-verified

131
132/** @internal */
133export const shuffle = <A>(elements: Iterable<A>): Effect.Effect<Chunk.Chunk<A>> =>
134 randomWith((random) => random.shuffle(elements))
135
136/** @internal */
137export const choice = <Self extends Iterable<unknown>>(

Callers

nothing calls this directly

Calls 2

randomWithFunction · 0.85
shuffleMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…