@eagleoutice/flowr - v2.17.4
    Preparing search index...

    Interface Monoid<T>

    Values that combine: concat is associative and empty changes nothing.

    interface Monoid<T> {
        concat: (a: T, b: T) => T;
        concatAll?: (values: readonly T[]) => T;
        empty: T;
    }

    Type Parameters

    • T
    Index
    concat: (a: T, b: T) => T
    concatAll?: (values: readonly T[]) => T

    combines many values at once, where that is cheaper than combining them one by one

    empty: T