no _index

This commit is contained in:
2023-01-16 21:11:12 +11:00
committed by GitHub
parent 7012849c87
commit d91b6704a4

View File

@@ -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: