FIRST INDEX

FIRST _ _ _ _ _ _ _ _ _ _ _ _ operator

The first operator returns the first element of a list.

syntax:

first(<list>) or first <list>

<list> must be a non-empty list to avoid an error message.

examples:


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

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


first alist; 

  A 


blist := {x,y,{ww,aa,qq},z}; 

  BLIST := {X,Y,{WW,AA,QQ},Z} 


first third blist; 

  WW