set
# given [1..5]
$array->set(4,6); # [1,2,3,4,6]
The set method returns the value of the element in the array at the index specified by the argument after updating it to the value of the second argument. This method returns a data type object to be determined after execution. Note: This method modifies the array.
set(Str $arg1, Any $arg2) : Any
method
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 14:
Unknown directive: =usage
- Around line 20:
Unknown directive: =description
- Around line 27:
Unknown directive: =signature
- Around line 31:
Unknown directive: =type