Untitled

 avatar
user_1044002
python
2 years ago
97 B
5
Indexable
Never
dedup = lambda a: a if len(a)<=1 else dedup(a[:-1]) if a[-1] in a[:-1] else dedup(a[:-1])+[a[-1]]