@mikuroxina/mini-fn
    Preparing search index...

    Function newPrismSimple

    • Creates a new Prism optic from the two functions, but downcast may return a Option.

      Type Parameters

      • B
      • S

      Parameters

      • upcast: (b: B) => S

        The function which coerces the modified value to a partial type.

      Returns <A>(downcast: (s: S) => Option.Option<A>) => Optic<S, S, A, B>

      The computation to focus the data.