<pre class="brush:xquery">
[] , (: empty array :)[ (1, 2) ] , (: array with single member :)
[ 1 to 2, 3 ] (: array with two members; same as: [ (1, 2), 3 ] :)
</pre>
<pre class="brush:xquery">
array { } , (: empty array; same as: array { () } :) array { (1, 2) } , (: array with three members; same as: array { 1, 2 } :)
array { 1 to 2, 3 } (: array with three members; same as: array { 1, 2, 3 } :)
</pre>
Like all other values, arrays are immutable. For example, the <code>[[Array Module#array:reverse|array:reverse]]</code> function creates a new array containing a re-ordering of the members of an existing array, but the existing array is not changed by the operation. Like sequences, arrays have no identity. It is meaningful to compare the contents of two arrays, but there is no way of asking whether they are "the same array": two arrays with the same content are indistinguishable.
Arrays may can be compared using with the {{Code|fn:deep-equal}} function. The [[Array Module]] describes the available remaining set of array functions.
==Functions==