Algorithms + Data Structures = Programs cover image

Episode 124: Vectorizing std::views::filter

Algorithms + Data Structures = Programs

00:00

The Problem With Replace if in Rust

The problem is that on the consuming side here in this for loop that consumes this range previously the range was a range of Indices and now it's a range of optional indices. So anywhere that we consume this we would now have to add some logic that that checks Oh, is this thing does this thing have a value? Is it an engaged optional and if so then I need to get the value and otherwise I ignore it now Be well, that's not how you solve this problem This is you're now an optional land which is a monad and so I mean honestly if anyone's upset by that Don't be upset by that. It's a simple thing, but they're in in

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app