Skip to content

Commit d748529

Browse files
authored
doc: add links to notable array related subheadings (#13838)
1 parent 02f72c8 commit d748529

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/docs.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ For more details and troubleshooting, please visit the [vab GitHub repository](h
7777
* [Strings](#strings)
7878
* [Numbers](#numbers)
7979
* [Arrays](#arrays)
80+
* [Multidimensional arrays](#multidimensional-arrays)
81+
* [Array methods](#array-methods)
82+
* [Array slices](#array-slices)
8083
* [Fixed size arrays](#fixed-size-arrays)
8184
* [Maps](#maps)
8285
* [Module imports](#module-imports)
@@ -1164,7 +1167,7 @@ println(a) // [0, 1, 2, 3, 4, 5]
11641167
println(b) // [7, 3]
11651168
```
11661169

1167-
### Slices with negative indexes
1170+
##### Slices with negative indexes
11681171

11691172
V supports array and string slices with negative indexes.
11701173
Negative indexing starts from the end of the array towards the start,
@@ -1187,7 +1190,7 @@ println(a#[20..10]) // []
11871190
println(a#[20..30]) // []
11881191
```
11891192

1190-
### Array method chaining
1193+
#### Array method chaining
11911194
You can chain the calls of array methods like `.filter()` and `.map()` and use
11921195
the `it` built-in variable to achieve a classic `map/filter` functional paradigm:
11931196

0 commit comments

Comments
 (0)