MCPcopy Create free account
hub / github.com/effect-app/libs / transformOptional

Function transformOptional

repos/effect/packages/effect/src/SchemaGetter.ts:573–575  ·  view source on GitHub ↗
(f: (oe: Option.Option<E>) => Option.Option<T>)

Source from the content-addressed store, hash-verified

571 */
572export function transform<T, E>(f: (e: E) => T): Getter<T, E> {
573 return transformOptional(Option.map(f))
574}
575
576/**
577 * Creates a getter that applies an effectful transformation to present values.
578 *

Callers 1

transformFunction · 0.70

Calls 2

fFunction · 0.50
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…