• Folds the data structure with folder function by right associativity. The last 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>(folder) => ((data) => A))

    The accumulated result value.

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

        • A

        Parameters

        • folder: ((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