Array question



Has anyone studied the internals of arrays enough to know
how one would implement a function which will tell if a particular
index is contained in a hashed array?  I suppose I could always
do a arrayinfo, and search thru the list linearly, but since the
arrays are probably implemented as a hash table, could it be
done with gethash?
Thanks,
Dan Stanger