rust-lang / rustlings

:crab: Small exercises to get you used to reading and writing Rust code!
https://rustlings.cool
MIT License
53.42k stars 10.08k forks source link

Add a set of closure exercises before iterators exercise. #2096

Closed divyaranjan1905 closed 1 month ago

divyaranjan1905 commented 1 month ago

I believe another set of exercises should be there before the 19th set on interators. This would keep it consistent with The Book and also provide a better treatment for closures which aren't exactly intuitive to beginning Rustaceans. Closures are also good practice for functional programming.

If this could be done, I'd be glad in creating a set of exercises to this end as a PR.

mo8it commented 1 month ago

Very good idea, but duplicate of https://github.com/rust-lang/rustlings/issues/1746. Let's discuss it there :)