mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 09:34:00 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
10 lines
682 B
Markdown
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) |