Closures in Rust

Rust allows us to do functional programming. One important thing in FP is being also to pass functions as parameters and also return functions which are also called high Order Functions. Today I want to share 2 videos and 2 pocs showing how we can do High Order Functions in Rust also you will get currying for free :-). I also will show how we can do closures using traits as well. So Let's get started!




The Videos

Source Code

https://github.com/diegopacheco/rust-playground/tree/master/closures-in-rust

https://github.com/diegopacheco/rust-playground/tree/master/closures-in-traits-rust

Cheers,

Diego Pacheco

Popular posts from this blog

Java Agents

Manage Work not People

DDD The Lost Discipline