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

Function range4

test/README.example.proof.ts:562–567  ·  view source on GitHub ↗
(start: number, stop: number)

Source from the content-addressed store, hash-verified

560 expect(range3).to(equal(range2));
561
562 const range4 = (start: number, stop: number) =>
563 range(start, stop)
564 .andThen((value) => ok(value))
565 .catchAll((error, ...args) =>
566 err({ error, ...(args.length === 0 ? {} : { message: args[0] }) }),
567 );
568
569 expect<InferEffect<typeof range4>>().to(equal<Log>);
570 expect(range4).to(extend(range3));

Callers

nothing calls this directly

Calls 6

rangeFunction · 0.70
okFunction · 0.70
errFunction · 0.70
catchAllMethod · 0.65
andThenMethod · 0.65
catchAndThrowMethod · 0.65

Tested by

no test coverage detected