🎯 lexically :: scoped

Implementing flat_map in Rust

Not too long ago I happened to watch @jonhoo's Crust of Rust stream on iterators. He implemented the standard library function flatten and along the way explained bits and pieces of Rust's trait system. In the stream, he recommends implementing flat_map as a way to better understand traits. So, here we are!

read more