Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
all_the_same = compose(all, the, same) solution in Creative category for All the Same by flpo
from functools import reduce
compose = lambda *fs: lambda x: reduce((lambda y, f: f(y)), reversed(fs), x)
all, the, same = (0, 1).__contains__, len, set
all_the_same = compose(all, the, same)
Jan. 29, 2018
Comments: