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