Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
iter solution in Clear category for All the Same by veky
def all_the_same(elements):
el = iter(elements)
first = next(el, None)
return all(element == first for element in el)
Jan. 30, 2018
Comments: