richardanaya / tour_of_rust

A tour of rust's language features
https://tourofrust.com
MIT License
879 stars 201 forks source link

Include mention of functional programming #368

Open DoubleHyphen opened 3 years ago

DoubleHyphen commented 3 years ago

Tour of Rust has extensive mention of Rust's OOP capabilities, yet there is no mention of its FP capabilities. A quick overview of the TOC doesn't even appear to teach how to create closures! I believe that at the absolute minimum there should be a note about closures, map & filter and maybe also and_then, and quite possibly a small note on how to return functions from functions. I could attempt to write those myself if this is permitted.

Zerotask commented 3 years ago

@DoubleHyphen Yes, I agree with you. This should definitely covered.