'step_by' iterators | Rust Language

preview_player
Показать описание
'step_by' creates an iterator starting at the same point, but stepping by the given amount at each iteration. This video shows 5 examples, try pausing before seeing the output of each example?

Try the code here in Rust Playground :

Gist here :

It would be amazing if you want to support my channel via Patreon, so I don't have to borrow &money! 🥴

#LearnRust #rustlang #rustprogramming
Рекомендации по теме
Комментарии
Автор

Really nice video!!!
Just a little tip, put spaces between the closing '>' and the '=' sign when assingning a value to a variable which has a generic type, otherwise your font ligature gets in the way and it looks like you're doing something weird :)

gustavobauer