THIRD INDEX

THIRD _ _ _ _ _ _ _ _ _ _ _ _ operator

The third operator returns the third item of a list.

syntax:

third(<list>) or third <list>

<list> must be a list containing at least three items to avoid an error message.

examples:


alist := {a,b,c,d}; 

  ALIST := {A,B,C,D} 


third alist; 

  C 


blist := {x,{aa,bb,cc},y,z}; 

  BLIST := {X,{AA,BB,CC},Y,Z}; 


third second blist; 

  CC 


third blist; 

  Y