def is_set(l):
    """Test if there is no duplicate element in l.
    >>> is_set([1,2,3])
    True
    >>> is_set([1,2,1])
    False
    >>> is_set([])
    True
    """
return not decompose(l)[1]
Check for duplicates in a flat list