Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Rust Programming Tutorial #9 – For Loop

35.9K views on YouTube

dcode 42 tutorials here

In this video we take a look at for loops in Rust, which are unconventional compared to other languages such as C or Java. In Rust, you use for loops to loop over iterators.

We also look at using the enumerate function to gain access to the index we are currently at in the loop.

If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!