Ord

Top  Previous  Next

ORD(setelement) reports the position of his particular setelement within the overall set.  Thus the command

 

thisX(ione)=ord(ione);

 

will set thisx(ione) equal to one for the first element in Ione, two for the second etc;

Notes:

Ord only works with ordered sets.
Ord refers to the relative position of each element in the set not necessarily the order in which they are typed.  In particular the order may be different as determined by the rules for set ordering.