Product SiteDocumentation Site

5.3.9.7. at


>>-at(name)----------------------------------------------------><

Returns the item associated with index name. If a method defined using setMethod (Section 5.3.9.21, “setMethod”) is associated with index name, the result of running this method is returned. If the collection has no item or method associated with index name, the Nil object is returned.

Example 5.165. Directory class - at method

say .environment~at("OBJECT")   /* Produces: "The Object class" */