ArrayTools
Extend
extend Array with additional elements
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Extend(A,B,inplace)
A
-
Array or Vector
B
list, Array, or Vector, elements to append to A
opts
(optional) inplace=true or inplace=false
inplace = true or false
Specifies whether the extend operation should reuse the existing Array or generate a new Array. The default value is true.
The Extend(A,B) command extends the Vector or the 1-D Array, A, by the elements in B.
When inplace=false is specified, Extend allocates a new Array and does not modify the existing one. Otherwise, the existing object is modified.
This function is part of the ArrayTools package, so it can be used in the short form Extend(..) only after executing the command with(ArrayTools. However, it can always be accessed through the long form of the command by using ArrayTools[Extend](..).
with⁡ArrayTools:
A≔Array⁡1,2,3
A≔123
Extend⁡A,4,5
12345
B≔sin⁡x,cos⁡x
B≔sin⁡xcos⁡x
Extend⁡A,B
12345sin⁡xcos⁡x
v≔Vectorrow⁡75,46,32,73,46:
Extend⁡v,32,66,111,115,inplace=false
75463273463266111115
v
7546327346
The ArrayTools[Extend] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
ArrayTools[Append]
ArrayTools[Concatenate]
Download Help Document