| Section | Title |
|---|---|
| 1 | Fixed Arrays |
| 2 | Array Literals |
| 3 | Multidimensional Arrays |
| 4 | Slices in Detail |
| 5 | Slice Lifetimes |
| 6 | String Literals |
| 7 | Mutable Strings |
| 8 | UTF-8 Processing |
| 9 | Building Dynamic Strings |
| 10 | Efficient Text Processing |
Fixed ArraysAn array is a group of values stored next to each other.
Array LiteralsAn array literal is the syntax you use to write array values directly in source code.
Multidimensional ArraysA multidimensional array is an array whose elements are also arrays.
Slices in DetailA slice is a view into a sequence of values.
Slice LifetimesA slice is a view into memory.
String LiteralsA string literal is text written directly in your source code.
Mutable StringsZig does not have a separate built-in mutable String type.
UTF-8 ProcessingZig string data is usually stored as UTF-8 bytes.
Building Dynamic StringsA dynamic string is text whose length is not fixed ahead of time.
Efficient Text ProcessingEfficient text processing means working with text without doing unnecessary allocation, copying, or decoding.