Function shortestWordSet

  • Returns any one of the shortest word sets accepted by the given iterator.

    If the iterator does not accept any words, undefined will be returned.

    This function assumes that all character sets in the given iterator are non-empty.


    This operation is roughly equivalent to firstOf(iterateWordSets(iter)) but implemented much more efficiently.

    Type Parameters

    • S

    Parameters

    Returns WordSet | undefined