The Array Cast cover image

Fold and Scan

The Array Cast

00:00

The Advantages of Prefixing the Identity Elements in Binary Operations

There's a version of a scan that prefixes the identity element. The result, how does that work for like any custom binary operation? Well, you'd have to pass in an initial element. So K and Q and BQN all have this initial element. And there's this other thing that I mentioned, I guess there's two podcasts to go about how I think the kind of natural way to split it up is to have the result from the fold.

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