
Episode 124: Vectorizing std::views::filter
Algorithms + Data Structures = Programs
00:00
How to Use a Filter to Express Your Problem
If you're using a filter Try to find a way to not use a filter and well, okay, but Wait, I don't know if I committed this code yet. My point is that like if you have that sequence that is shape preserved and of optionals now that there are Monadic operations like filter map that gets rid of the options. So at some point you might need to actually destroy the shape in which case We're back to what we were talking about originally and there's no solution destroy the shape Why would you need to destroy the shape because what if you need to end up? What if you want a vector of those even numbers at the end of the day then
Transcript
Play full episode