emojicode / emojicode

πŸ˜€πŸ˜œπŸ”‚ World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

commented

"🐽 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!