Group Abstract Group Abstract

Message Boards Message Boards

How to verify that all the elements of a list are equal?

Posted 10 years ago
POSTED BY: Luis Ledesma
3 Replies
Posted 10 years ago

Many thanks @Hans Milton and @ David Reiss with your help I can solve my problem

POSTED BY: Luis Ledesma
Posted 10 years ago

Another alternative is:

Equal @@ list
POSTED BY: Hans Milton
Length[Union[list]]===1

Will test this... Or

MatchQ[list, {x_..}]
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard