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

Function valuesOf

packages/effect/test/TArray.test.ts:28–29  ·  view source on GitHub ↗
(array: TArray.TArray<A>)

Source from the content-addressed store, hash-verified

26 TArray.fromIterable(Array.from({ length }, () => value))
27
28const valuesOf = <A>(array: TArray.TArray<A>): STM.STM<Array<A>> =>
29 pipe(array, TArray.reduce<Array<A>, A>([], (acc, a) => [...acc, a]))
30
31describe("TArray", () => {
32 it.effect("collectFirst - finds and transforms correctly", () =>

Callers 1

TArray.test.tsFile · 0.85

Calls 1

pipeFunction · 0.90

Tested by

no test coverage detected