def getDistinctElt(transactions):
    """
        Get the distinct element in a list of transactions.
    """
    distinctSet = set()
    for transaction in transactions:
        for elt in transaction:
            if not(elt in distinctSet):
                distinctSet.add(elt)
    return distinctSet