Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
groupby solution in Clear category for Compress List by Rcp8jzd
from typing import Iterable
from itertools import groupby
def compress(items: list) -> Iterable:
return [k for k, g in groupby(items)]
March 30, 2020
Comments: