Untitled

 avatar
user_1044002
python
a year ago
121 B
6
Indexable
Never
def dedup(a):
    if len(a) <= 1:
        return a
    return dedup(a[:-1]) if a[-1] in a[:-1] else dedup(a[:-1])+[a[-1]]