MCPcopy Index your code
hub / github.com/Effect-TS/effect / liftNullable

Function liftNullable

packages/effect/src/Option.ts:721–724  ·  view source on GitHub ↗
(
  f: (...a: A) => B | null | undefined
)

Source from the content-addressed store, hash-verified

719 * @since 2.0.0
720 */
721export const liftNullable = <A extends ReadonlyArray<unknown>, B>(
722 f: (...a: A) => B | null | undefined
723): (...a: A) => Option<NonNullable<B>> =>
724(...a) => fromNullable(f(...a))
725
726/**
727 * Returns the value contained in the `Option` if it is `Some`; otherwise,

Callers

nothing calls this directly

Calls 2

fromNullableFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…