>

$\mathrm{with}\left(\mathrm{ArrayTools}\right)\:$

>

$A\u2254\mathrm{Array}\left(\left[11\,22\,33\,44\,55\right]\right)$

${A}{\u2254}\left[\begin{array}{ccccc}{11}& {22}& {33}& {44}& {55}\end{array}\right]$
 (1) 
Remove A[3] and shrink:
>

$\mathrm{Remove}\left(A\,3\right)$

$\left[\begin{array}{cccc}{11}& {22}& {44}& {55}\end{array}\right]$
 (2) 
A is permanently changed:
$\left[\begin{array}{cccc}{11}& {22}& {44}& {55}\end{array}\right]$
 (3) 
>

$\mathrm{upperbound}\left(A\right)$

>

$\mathrm{ArrayDims}\left(A\right)$

>

$\mathrm{numelems}\left(A\right)$

Remove a range of elements
>

$\mathrm{Remove}\left(A\,1..2\right)$

$\left[\begin{array}{cc}{44}& {55}\end{array}\right]$
 (7) 
Remove the last element
>

$\mathrm{Remove}\left(A\,1\right)$

$\left[\begin{array}{c}{44}\end{array}\right]$
 (8) 
Add some elements back
>

$A\left(2\right)\u225455$

${A}{}\left({2}\right){\u2254}\left[\begin{array}{cc}{44}& {55}\end{array}\right]$
 (9) 
>

$A\left(3\right)\u225466$

${A}{}\left({3}\right){\u2254}\left[\begin{array}{ccc}{44}& {55}& {66}\end{array}\right]$
 (10) 
$\left[\begin{array}{ccc}{44}& {55}& {66}\end{array}\right]$
 (11) 
Remove the last two elements
>

$\mathrm{Remove}\left(A\,2..1\right)$

$\left[\begin{array}{c}{44}\end{array}\right]$
 (12) 