xen-dev-utils
    Preparing search index...

    Function iterCombinations

    • Get all possible combinations of elements in a set.

      Type Parameters

      • T

      Parameters

      • set: T[]

        Array of objects of any type. They are treated as unique.

      Returns Generator<T[], number, undefined>

      Generator of arrays representing all possible non-empty combinations of elements in a set.