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

Function addOne

test/effected.spec.ts:2600–2601  ·  view source on GitHub ↗
(self: Effected<E, number>)

Source from the content-addressed store, hash-verified

2598describe("Effected#pipe", () => {
2599 // Create helper functions for piping
2600 const addOne = <E extends Effect>(self: Effected<E, number>): Effected<E, number> =>
2601 self.map((x) => x + 1);
2602
2603 const double = <E extends Effect>(self: Effected<E, number>): Effected<E, number> =>
2604 self.map((x) => x * 2);

Callers

nothing calls this directly

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected