Product SiteDocumentation Site

5.3.10.13. firstItem


>>-firstItem---------------------------------------------------><

Returns the first item in the list or the Nil object if the list is empty.

Example 5.167. Directory class - firstItem method

musketeers=.list~of("Porthos","Athos","Aramis") /* Creates list MUSKETEERS      */
item=musketeers~firstItem                       /* Gives first item in list     */
                                                /* (Assigns "Porthos" to item)  */