0

how to unfreeze an array?

Once an array is safeguarded with array.freeze method, how could we unfreeze it for enabling modification on it again.

19th Jan 2017, 12:51 PM
Ling Jiang
Ling Jiang - avatar
1 Respuesta
+ 1
I do not think it is possible to. It declared as constant and connot change from that. what you can do though is create shalloe copy of all the data members within the array
19th Jan 2017, 6:59 PM
Elias Mawa
Elias Mawa - avatar