list_all_equal

utils.list_all_equal(data)[source]

Checks if all of the elements of a list are the same.

Parameters:data (list of 1D) – The list of elements to compare
Returns:equivalence – True if the elements are all the same
Return type:bool

Notes

Based on https://stackoverflow.com/questions/3844801