• Groups the list into sub-lists when adjacent elements are satisfy pred.

    Type Parameters

    • T

    Parameters

    • pred: ((l) => ((r) => boolean))

      The condition to group.

        • (l): ((r) => boolean)
        • Parameters

          • l: T

          Returns ((r) => boolean)

            • (r): boolean
            • Parameters

              • r: T

              Returns boolean

    Returns ((list) => List<List<T>>)

    The list of grouped sub-list.

Generated using TypeDoc