Quote from
asmat on February 12, 2024, 9:30 am
How do I keep the original array unchanged while manipulating a copy of it?
CreateArray [orginalArray] 1,2,3,4,5,6
SetVar [copyArray] [orginalArray]
setvar [copyArray(0)] 9
ConsoleLog [orginalArray]
ConsoleLog [copyArray]
By changing the copyArray the original also changed how should I avoid this?
How do I keep the original array unchanged while manipulating a copy of it?
CreateArray [orginalArray] 1,2,3,4,5,6
SetVar [copyArray] [orginalArray]
setvar [copyArray(0)] 9
ConsoleLog [orginalArray]
ConsoleLog [copyArray]
By changing the copyArray the original also changed how should I avoid this?