MCPcopy Create free account
hub / github.com/Effect-TS/effect / toString

Function toString

packages/effect/src/internal/option.ts:40–42  ·  view source on GitHub ↗
(this: Option.Some<A>)

Source from the content-addressed store, hash-verified

38 return Hash.combine(Hash.hash(this._tag))(Hash.hash(this.value))
39 },
40 toString<A>(this: Option.Some<A>) {
41 return `some(${format(this.value)})`
42 },
43 toJSON<A>(this: Option.Some<A>) {
44 return {
45 _id: "Option",

Callers

nothing calls this directly

Calls 1

formatFunction · 0.90

Tested by

no test coverage detected