Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Composition of Functions solution in Creative category for Group Equal consecutive by flpo
from itertools import groupby
from operator import itemgetter
from functools import partial, reduce
compose = lambda *funcs: lambda x: reduce(lambda x, f: f(x), reversed(funcs), x)
group_equal = compose(list, partial(map, compose(list, itemgetter(1))), groupby)
Oct. 29, 2018
Comments: