@mikuroxina/mini-fn
    Preparing search index...

    Type Alias Bifoldable<P>

    A data structure which can fold both parameters on P.

    type Bifoldable<P> = {
        bifoldR: <A, C>(
            aFolder: (a: A) => (c: C) => C,
        ) => <B>(
            bFolder: (b: B) => (c: C) => C,
        ) => (init: C) => (data: Get2<P, A, B>) => C;
    }

    Type Parameters

    • P
    Index

    Properties

    Properties

    bifoldR: <A, C>(
        aFolder: (a: A) => (c: C) => C,
    ) => <B>(
        bFolder: (b: B) => (c: C) => C,
    ) => (init: C) => (data: Get2<P, A, B>) => C

    Folds the data structure with function aFolder and bFolder by right associativity.

    Type Declaration

      • <A, C>(
            aFolder: (a: A) => (c: C) => C,
        ): <B>(
            bFolder: (b: B) => (c: C) => C,
        ) => (init: C) => (data: Get2<P, A, B>) => C
      • Type Parameters

        • A
        • C

        Parameters

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

          The function to reduce items for the first type parameter.

        Returns <B>(bFolder: (b: B) => (c: C) => C) => (init: C) => (data: Get2<P, A, B>) => C

        The value folded data.