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

Function double

test/README.example.spec.ts:571–574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

569 const ask = <T>(): Effected<Ask<T>, T> => effect("ask")();
570
571 const double = () =>
572 effected(function* () {
573 return (yield* ask<number>()) + (yield* ask<number>());
574 });
575
576 expect(
577 effected(function* () {

Callers 1

Calls 2

effectedFunction · 0.90
askFunction · 0.70

Tested by

no test coverage detected