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

    Function newPrism

    • Creates a new Prism optic from the two functions.

      Type Parameters

      • B
      • T

      Parameters

      • upcast: (b: B) => T

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

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

      The computation to focus the data.