The Array Cast cover image

Fold and Scan

The Array Cast

CHAPTER

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.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner