• Folds the data structure with folder function by left associativity. The first value will be used as an initial value for acc of folder, or throws an error if no exists.

    Type Parameters

    • T

    Parameters

    • foldable: Foldable<T>

      The instance of Foldable for T.

    Returns (<A>(f) => ((data) => A))

    The accumulated result value.

      • <A>(f): ((data) => A)
      • Type Parameters

        • A

        Parameters

        • f: ((l) => ((r) => A))
            • (l): ((r) => A)
            • Parameters

              • l: A

              Returns ((r) => A)

                • (r): A
                • Parameters

                  • r: A

                  Returns A

        Returns ((data) => A)

          • (data): A
          • Parameters

            Returns A

Generated using TypeDoc