A data structure which can fold both parameters on P.

Type Parameters

  • P

Hierarchy

Properties

Properties

bifoldR: (<A, C>(aFolder) => (<B>(bFolder) => ((init) => ((data) => C))))

Type declaration

    • <A, C>(aFolder): (<B>(bFolder) => ((init) => ((data) => C)))
    • Folds the data structure with function aFolder and bFolder by right associativity.

      Type Parameters

      • A

      • C

      Parameters

      • aFolder: ((a) => ((c) => C))

        The function to reduce items for the first type parameter.

          • (a): ((c) => C)
          • Parameters

            • a: A

            Returns ((c) => C)

              • (c): C
              • Parameters

                • c: C

                Returns C

      Returns (<B>(bFolder) => ((init) => ((data) => C)))

      The value folded data.

        • <B>(bFolder): ((init) => ((data) => C))
        • Type Parameters

          • B

          Parameters

          • bFolder: ((b) => ((c) => C))
              • (b): ((c) => C)
              • Parameters

                • b: B

                Returns ((c) => C)

                  • (c): C
                  • Parameters

                    • c: C

                    Returns C

          Returns ((init) => ((data) => C))

            • (init): ((data) => C)
            • Parameters

              • init: C

              Returns ((data) => C)

                • (data): C
                • Parameters

                  Returns C

Generated using TypeDoc