Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner: itertools.groupby solution in Creative category for Compress List by Stensen
import itertools
compress = lambda l: (i for i, _ in itertools.groupby(l))
Sept. 24, 2020
Comments: