...

/

Introduction to Vectors

Introduction to Vectors

This lesson discusses vectors in Rust.

What are Vectors?

Vectors are resizable arrays meaning(they can grow or shrink in size).

Create Vectors

There are two ways to create a vector:

Syntax

To create a vector write the vector macro (vec!) followed by the elements of the vector enclosed in square brackets

It is ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy