wu-lang / wu

🐉 A practical game and data language
https://wu-lang.gitbook.io/guide/
MIT License
467 stars 17 forks source link

[question] how does the syntax for arrays look? #43

Closed redthing1 closed 2 years ago

redthing1 commented 2 years ago

how does the syntax for arrays look? couldn't find in documentation or examples

nilq commented 2 years ago

Hello! I have been quite busy with other stuff lately.

foo: [int] = [1, 2, 3]
bar := foo[1]
redthing1 commented 2 years ago

Thank you! If I have time I'll send a PR adding it to the docs page :)