mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
no _index
This commit is contained in:
@@ -98,7 +98,6 @@ array.printMe();
|
||||
There are several underscore functions provided by default:
|
||||
|
||||
```
|
||||
_index(self, first, second, third, assign, op) //don't use this
|
||||
_set(self, key, value) //array, dictionary
|
||||
_get(self, key) //array, dictionary
|
||||
_push(self, value) //array
|
||||
@@ -107,8 +106,6 @@ _length(self) //array, dictionary, string
|
||||
_clear(self) //array, dictionary
|
||||
```
|
||||
|
||||
The `_index` function is simply used for slice notation, so it's recommended that you don't use it or overwrite it.
|
||||
|
||||
## Slice Notation
|
||||
|
||||
When indexing a compound value, you can use slice notation to manipulate it's elements:
|
||||
|
||||
Reference in New Issue
Block a user