MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / from

Method from

src/effected.ts:403–408  ·  view source on GitHub ↗

* Create an Effected instance that just returns the value from a getter. * @param getter The getter to get the value. * @returns

(getter: () => R)

Source from the content-addressed store, hash-verified

401 * @returns
402 */
403 static from<R>(getter: () => R): Effected<never, R> {
404 return effected(() => ({ next: () => ({ done: true, value: getter() }) })) as Effected<
405 never,
406 R
407 >;
408 }
409
410 /**
411 * Combine multiple effected programs into one, running them in parallel and produces a tuple or

Callers 8

effected.spec.tsFile · 0.80
rangeFunction · 0.80
fib3Function · 0.80
rangeFunction · 0.80
allMethod · 0.80
allSeqMethod · 0.80
serializeFunction · 0.80

Calls 1

effectedFunction · 0.85

Tested by 2

rangeFunction · 0.64
fib3Function · 0.64