Rust Crash Course | #12 Vectors

preview_player
Показать описание
Welcome back to video number 12 in this Rust tutorial series! In this video, we learn about vectors. If you're used to programming in languages like Python, you might be familiar with arrays. In Rust, we are not able to do the same commands with arrays like in Python so that's where vectors come in!

📖Resources📖

💻Code💻

⏰Time Stamps⏰
00:00 - Recap of Previous Video (where a vector was used)
00:38 - Introduction to Vectors
02:00 - Creating a Vector
03:10 - Creating an Empty Vector
04:38 - Operations with Vectors
04:52 - Reassigning Values in a Vector
06:12 - Finding Specific Elements in a Vector
07:09 - Finding the Length of a Vector
07:51 - Adding to a Vector (push command)
08:35 - Removing Last Entry (pop command)
09:00 - Looping Through a Vector
10:34 - Looping and Mutating

🔗 Social Media Links 🔗

💸 Donations 💸
Рекомендации по теме
Комментарии
Автор

I couldn't figure why my vector wasn't compiling 😠. I'm happy now that 😁 I figured it out. My code looked identical. Gave me issue sign but it wasn't it. My curly braces were the issue. The first one ran. The second one didn't. 🤔🤨 I know why now. Thank you 🙏🏾 Sorry I haven't been keeping up. Error found and solved. 😁

clarencewashington
Автор

amazing video, thank you very much :)

PepePlaca-ts
Автор

Ellie thank you very much. Structs and Vectors are the most important concepts🐯🙏🇵🇰

amjadiqbal