Set value at index
praxidike97 opened this issue Β· comments
I want to change a value in a list at a certain position. In the documentation it says this can be done with
π β‘οΈ π½ π value Element index π’
So I tried
π½ list value π― index
Here list is of type π¨ππ―π and I want to change the element at 'index' to 'value'. But this just gives me an error message, what do I do wrong?
"π½ list value π― index" is not valid syntax.
To set the value to a certain index:
value β‘οΈ π½ list indexβοΈ
Iβd recommend you read more about methods and assignable methods here: https://www.emojicode.org/docs/reference/classes-valuetypes.html#methods
Ah, I see. Thanks, I didn't know about assignable methods before!