array->remove
Removes array items.
Target
Signature
1array->remove(position::integer= ?, count::integer= ?)Removes array items.
array->remove is called with member syntax on a receiver value. array->remove 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- Optional value of type
integer. Supplypositionpositionally unless the signature shows a keyword form. count- Optional value of type
integer. Supplycountpositionally unless the signature shows a keyword form.
Examples
Basic call
1array('a','b')->remove(1)The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.