Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Compress List by alexandrov.net
from itertools import groupby
def compress(items):
return list(x for x, _ in groupby(items))
April 25, 2020