Arrays
Explore how to use arrays in Rust to store fixed-size sequences on the stack, understand the role of vectors for dynamic storage, and work with slices for referencing portions of data. This lesson helps you master key concepts needed to manage collections of values effectively.
We'll cover the following...
We'll cover the following...
We’ve spent a lot of time with strings. That makes sense, because we want our programs to interact with human beings, and human beings tend to like words and sentences. We can logically think about strings as a sequence of characters. However, strings are just one kind of a sequence of values. What if we want a sequence of numbers, or people, or something else?
In this lesson, we’re going to ...