Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple loop solution in Clear category for Compress List by maksimus
def compress(i):
l = []
n = None
for x in i:
if x != n:
l.append(x)
n = x
return l
May 22, 2020