indexNear64

indexNear64(value: MemberType): Integer64;

The indexNear64 method of the Collection class returns an approximate index for the entry specified in the value parameter if it exists in the collection as an Integer64 value or it returns zero (0) if it does not exist. (See also the Iterator class startNearIndex method.)

If the specified value occurs more than once in the collection, the approximate index of the first occurrence is returned.

For the Set and MemberKeyDictionary subclasses, this method calculates and returns an approximate index. This incurs less processing overhead than using the indexOf64 method. For other subclasses of the Collection class, the indexNear64 method is the same as the indexOf64 method, and is included for compatibility.