Is there a way to find duplicate items in a list?

aList = ["mary", "mary", "john", "steve", "john", "mary"]

How can I find how many mary and john are in the list and its location 
without doing a lot of repeats?

Thanks,


Changhsu Liu
[EMAIL PROTECTED]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to