Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
yield if != previous solution in Clear category for Compress List by veky
def compress(items, *, previous=None):
for item in items:
if item != previous: yield item
previous = item
Aug. 13, 2020
Comments: