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

Function makeIso

packages/effect/src/Optic.ts:100–102  ·  view source on GitHub ↗
(get: (s: S) => A, set: (a: A) => S)

Source from the content-addressed store, hash-verified

98 * @since 4.0.0
99 */
100export function makeIso<S, A>(get: (s: S) => A, set: (a: A) => S): Iso<S, A> {
101 return make(primitiveNode("Iso", get, set))
102}
103
104/**
105 * Focuses on exactly one part `A` inside a whole `S`.

Callers

nothing calls this directly

Calls 2

primitiveNodeFunction · 0.85
makeFunction · 0.70

Tested by

no test coverage detected