2min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode