I have an information on a global list variables. I want to use this information and make some manipulation with it. But I don’t want to change this global list. Right now any manipulation I make change this global list. I have already a long code code with this global list.
The following example represents my bug difficulty:
Manipulating_List = L
global s = [1,2,3,4,5]
println("function result: ",Dont_Change_Global_List(s))
println(“global list”, s)
function result: [1, 3, 4, 5]
global list[1, 3, 4, 5]
Is there anything I can do without changing the global list s but still make a manipulations?