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

Function double

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

Source from the content-addressed store, hash-verified

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);
2605
2606 const toString = <E extends Effect, T>(self: Effected<E, T>): Effected<E, string> =>
2607 self.map((x) => String(x));

Callers

nothing calls this directly

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected