• Creates a new Lens optic from the two functions.

    Type Parameters

    • S

    • A

    Parameters

    • get: ((s) => A)

      The extraction process.

        • (s): A
        • Parameters

          • s: S

          Returns A

    Returns (<B, T>(set) => Optic<S, T, A, B>)

    The computation to focus the data.

      • <B, T>(set): Optic<S, T, A, B>
      • Type Parameters

        • B

        • T

        Parameters

        • set: ((s) => ((b) => T))
            • (s): ((b) => T)
            • Parameters

              • s: S

              Returns ((b) => T)

                • (b): T
                • Parameters

                  • b: B

                  Returns T

        Returns Optic<S, T, A, B>

Generated using TypeDoc