ADSP: Algorithms + Data Structures = Programs cover image

Episode 102: Rust scan (vs C++ & Haskell scans)

ADSP: Algorithms + Data Structures = Programs

00:00

I Don't Like It. It's a Different Algorithm.

A scan that short circuits should be a different algorithm in my opinion, because having to return a sum or a none from your binary operation is silly. So this binary op here, in the cases that I'm using it is either going to be a plus or you know, multiplies. But I have to basically hand right out a lambda where all I'm doing is performing the binary operation on the accumulator in the current element and then wrapping the result of that in a sum. That might be a nicer way to do this more automatically. Anyways, kind of irritating. Show me again.

Play episode from 03:47
Transcript

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