array->get
Reads an item by position.
Target
Signature
1array->get(position::integer)Reads an item by position.
array->get is called with member syntax on a receiver value. array->get is useful when moving through groups of values. Prefer collection operations that match the shape of the data rather than converting everything to strings.
Parameters
position- Required value of type
integer. Supplypositionpositionally unless the signature shows a keyword form.
Examples
Basic call
1array('a','b')->get(2)The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.