[Tutor] checking if all items in a list are the same
Julieta Rangel
julieta_rangel@hotmail.com
Mon, 07 May 2001 17:18:05 -0500
If I have a list, how can I compare all of the elements to check if they are
the same? Say that I have the following list:
[e,e,e,e,e]
How can I tell the computer to go item by item in the list and compare them.
If they are the same, I want the computer to tell me that it has found the
identity element, and if they are not the same, I want the computer to tell
me that there is no identity element. Can anyone help?
Julieta
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com