How do I test for existence of a list element?
- To: mathgroup at smc.vnet.net
- Subject: [mg112665] How do I test for existence of a list element?
- From: Joseph Gwinn <joegwinn at comcast.net>
- Date: Sat, 25 Sep 2010 02:20:57 -0400 (EDT)
I have an application where I am bouncing around in a list, and may
accidentally ask for an element beyond the end of the list, which causes
Mathematica to complain and balk, preventing completion.
Is there any way to test for the existence of a list element without
provoking complaint or balking should the list item fail to exist?
Prev by Date:
Re: calculate the area
Next by Date:
test cluster integration
Previous by thread:
Re: Convex crossover in genetic algorithm
Next by thread:
Re: How do I test for existence of a list element?