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
asis(X)
X can be of any data type.
Return a shallow copy of X.
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