asis

Syntax

asis(X)

Arguments

X can be of any data type.

Details

Return a shallow copy of X.

Examples

a = 1 2 3
b = asis(a)
a[0] = 0
b
// output
[0, 2, 3]

b[1] = 4
a;
// output
[0, 4, 3]

Related Functions: copy