• Reduces the elements of array by reducer from left-side.

    Type Parameters

    • A

    • B

    Parameters

    • reducer: ((b) => ((a) => B))

      The reducer called with B and A.

        • (b): ((a) => B)
        • Parameters

          • b: B

          Returns ((a) => B)

            • (a): B
            • Parameters

              • a: A

              Returns B

    Returns ((b) => ((fa) => B))

    The folded value.

      • (b): ((fa) => B)
      • Parameters

        • b: B

        Returns ((fa) => B)

          • (fa): B
          • Parameters

            • fa: readonly A[]

            Returns B

Generated using TypeDoc