
Episode 131: One Algorithm To Rule Them All!
Algorithms + Data Structures = Programs
00:00
The Importance of Separating Predicates in the API
I think they're equivalent. It's just a case of in my case, it seemed obvious to put the predicate separate in the API. So I did, but yes, it, it goes down a sequence. It does a scan. It stops when, when you want it to stop either,. But either, you know, and that could be that you can have a predefinative that works on the accumulated value or you can have one that works on sort of depth index you've scanned to. Right. And what's interesting about if we ignore the zip part of the zipfold while, and we just compare fold while versus scan while is kind of what you're talking about,
Transcript
Play full episode