MCPcopy
hub / github.com/Effect-TS/effect / liftOption

Function liftOption

packages/effect/src/Array.ts:2905–2908  ·  view source on GitHub ↗
(
  f: (...a: A) => Option.Option<B>
)

Source from the content-addressed store, hash-verified

2903 * @since 2.0.0
2904 */
2905export const liftOption = <A extends Array<unknown>, B>(
2906 f: (...a: A) => Option.Option<B>
2907) =>
2908(...a: A): Array<B> => fromOption(f(...a))
2909
2910/**
2911 * @category conversions

Callers

nothing calls this directly

Calls 2

fromOptionFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected