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

Function iterate

test/README.example.proof.ts:284–284  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

282test("A deep dive into `resume` and `terminate`", () => {
283 type Iterate<T> = Effect<"iterate", [value: T], void>;
284 const iterate = <T>(value: T) => effect("iterate")<[value: T], void>(value);
285
286 const iterateOver = <T>(iterable: Iterable<T>) =>
287 effected(function* () {

Callers 1

iterateOverFunction · 0.70

Calls 1

effectFunction · 0.90

Tested by

no test coverage detected