new

create new value by cloning given one


Parameters

new value :any

Returns

  • :any

Examples

copy
c: "Hello" d: new c ; make a copy of the older string ; changing one string in-place ; will change only the string in question 'd ++ "World" print d ; HelloWorld print c ; Hello

Related