Files
developer-roadmap/roadmaps/rust/content/array@2DbdHCjFzGHwCUETakaGh.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

10 lines
682 B
Markdown

# Array
Arrays are fixed-size collections of elements of the same type stored consecutively in memory. Size must be known at compile time and cannot change. Syntax: `let arr: [type; size] = [elements];`. Example: `let nums: [i32; 3] = [1, 2, 3];`. Access elements with zero-based indexing: `arr[0]`.
Visit the following resources to learn more:
- [@official@Array](https://doc.rust-lang.org/std/primitive.array.html)
- [@article@The Array Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-array-type)
- [@article@Rust Array (With Examples)](https://www.programiz.com/rust/array)
- [@video@Rust Tutorial - Arrays](https://www.youtube.com/watch?v=t047Hseyj_k&t=767s)