doc: add links to notable array related subheadings (#13838)
parent
02f72c8230
commit
d748529337
|
@ -77,6 +77,9 @@ For more details and troubleshooting, please visit the [vab GitHub repository](h
|
||||||
* [Strings](#strings)
|
* [Strings](#strings)
|
||||||
* [Numbers](#numbers)
|
* [Numbers](#numbers)
|
||||||
* [Arrays](#arrays)
|
* [Arrays](#arrays)
|
||||||
|
* [Multidimensional arrays](#multidimensional-arrays)
|
||||||
|
* [Array methods](#array-methods)
|
||||||
|
* [Array slices](#array-slices)
|
||||||
* [Fixed size arrays](#fixed-size-arrays)
|
* [Fixed size arrays](#fixed-size-arrays)
|
||||||
* [Maps](#maps)
|
* [Maps](#maps)
|
||||||
* [Module imports](#module-imports)
|
* [Module imports](#module-imports)
|
||||||
|
@ -1164,7 +1167,7 @@ println(a) // [0, 1, 2, 3, 4, 5]
|
||||||
println(b) // [7, 3]
|
println(b) // [7, 3]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Slices with negative indexes
|
##### Slices with negative indexes
|
||||||
|
|
||||||
V supports array and string slices with negative indexes.
|
V supports array and string slices with negative indexes.
|
||||||
Negative indexing starts from the end of the array towards the start,
|
Negative indexing starts from the end of the array towards the start,
|
||||||
|
@ -1187,7 +1190,7 @@ println(a#[20..10]) // []
|
||||||
println(a#[20..30]) // []
|
println(a#[20..30]) // []
|
||||||
```
|
```
|
||||||
|
|
||||||
### Array method chaining
|
#### Array method chaining
|
||||||
You can chain the calls of array methods like `.filter()` and `.map()` and use
|
You can chain the calls of array methods like `.filter()` and `.map()` and use
|
||||||
the `it` built-in variable to achieve a classic `map/filter` functional paradigm:
|
the `it` built-in variable to achieve a classic `map/filter` functional paradigm:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue