Product Site

5.3.6.15. firstItem

Returns the first item in the array or .nil if the array is empty.
Example 5.174. Array class — firstItem method
musketeers=.array~of("Porthos","Athos","Aramis")  /* Creates array MUSKETEERS      */
item=musketeers~firstItem                         /* Gives first item in array     */
                                                  /* (Assigns "Porthos" to item)   */