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

Function constant

packages/effect/src/Combiner.ts:266–268  ·  view source on GitHub ↗
(a: A)

Source from the content-addressed store, hash-verified

264 * @since 4.0.0
265 */
266export function constant<A>(a: A): Combiner<A> {
267 return make(() => a)
268}
269
270/**
271 * Wraps a `Combiner` so that a separator value is inserted between every

Callers 15

Schedule.tsFile · 0.90
fibonacciFunction · 0.90
txFunction · 0.90
reduceWhileEffectFunction · 0.90
takeWhileEffectFunction · 0.90
takeWhileFilterEffectFunction · 0.90
collectFunction · 0.90
ExecutionPlan.tsFile · 0.90
mapEffectConcurrentFunction · 0.90
Channel.tsFile · 0.90
makeFunction · 0.90
succeedContextFunction · 0.90

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected