SECOND INDEX

SECOND _ _ _ _ _ _ _ _ _ _ _ _ operator

The second operator returns the second element of a list.

syntax:

second(<list>) or second <list>

<list> must be a list with at least two elements, to avoid an error message.

examples:


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

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


second alist; 

  B 


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

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


second second blist; 

  BB