Inserts an element at the back of a list.
append(xs:list, x:any) -> listDescription
Section titled “Description”The append function returns the list xs with x inserted at the end. The
expression xs.append(x) is equivalent to [...xs, x].
If xs is null, it is treated like an empty list, so null.append(x) returns
[x].
Examples
Section titled “Examples”Append a number to a list
Section titled “Append a number to a list”from {xs: [1, 2]}xs = xs.append(3){xs: [1, 2, 3]}Append to a nullable list
Section titled “Append to a nullable list”from {xs: null}xs = xs.append(3){ xs: [ 3, ],}