Replace a specific element in an array?

I have an array of text blocks for a UI element (6 in total), and other devices can edit the text in any of these text blocks by accessing it through the array through a method that takes in an index and the value to change. I know arrays are immutable and you can add an element to the end of an array, but is there a way to edit the specific element that is required by the method’s arguments?

Solved, was pretty simple in the end:

if(set array[index] = newelement){}

the curly brackets at the end are necessary

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.