Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One-liner solution in Clear category for Group Equal consecutive by tom-tom
from itertools import groupby
def group_equal(items):
return [list(g) for _, g in groupby(items)]
Dec. 8, 2018
Comments: