MCPcopy Index your code
hub / github.com/Effect-TS/effect / cont

Function cont

packages/effect/src/internal/stm/tArray.ts:238–239  ·  view source on GitHub ↗
(state: readonly [Option.Option<A>, number])

Source from the content-addressed store, hash-verified

236>(2, <A, R, E>(self: TArray.TArray<A>, predicate: (value: A) => STM.STM<boolean, E, R>) => {
237 const init = [Option.none() as Option.Option<A>, 0 as number] as const
238 const cont = (state: readonly [Option.Option<A>, number]) =>
239 Option.isNone(state[0]) && state[1] < self.chunk.length - 1
240 return core.map(
241 stm.iterate(init, {
242 while: cont,

Callers 3

core-effect.tsFile · 0.85
completeRaceFunction · 0.85
stm.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected