Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 */
139
export
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
shuffle
Method · 0.65
Tested by
no test coverage detected