Intro to Rust (Closures, Iterators, and the Box Smart Pointer)

in #technology7 years ago

In our 9th Rust Programming tutorial video, we look at Anonymous Functions or Closures and how Rust treats them as higher order functions. We see how we can use closures and functions as input and outputs to other functions as well as fields to structs and the various advantages of doing this. We look at Iterators which allow us to easily move through collections of data in a functional manner. We also talk about how Rust uses lazy evaluation when dealing with its iterators which gives us more control. We also look at the Box Smart Pointer construct and how it works in relation to the reference and normal pointer types in Rust.

If you enjoy the video, feel free to follow me on Steemit or on YouTube to get updates on the channel as well as more content.

Sort:  

Nice video tutorial @tensor

I appreciate the comment.

The @OriginalWorks bot has determined this post by @tensor to be original material and upvoted(1.5%) it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

You have collected your daily Power Up! This post received an upvote worth of 0.18$.
Learn how to Power Up Smart here!

You got a 0.30% upvote from @postpromoter courtesy of @tensor!

Coin Marketplace

STEEM 0.22
TRX 0.27
JST 0.041
BTC 104060.88
ETH 3871.70
SBD 3.28