all_are_equal

mathtools.all_are_equal(argument)

Is true when argument is an iterable collection of equal items. Otherwise false.

>>> import abjad
>>> abjad.mathtools.all_are_equal([99, 99, 99, 99, 99, 99])
True
>>> abjad.mathtools.all_are_equal(17)
False

Is true when argument is empty:

>>> abjad.mathtools.all_are_equal([])
True

Returns true or false.