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

Function some

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

Source from the content-addressed store, hash-verified

424 type Option<T> = { kind: "some"; value: T } | { kind: "none" };
425
426 const some = <T>(value: T): Option<T> => ({ kind: "some", value });
427 const none: Option<never> = { kind: "none" };
428
429 const safeDivide2 = (a: number, b: number) =>

Callers 2

safeDivide2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected