2min chapter

The Array Cast cover image

Fold and Scan

The Array Cast

CHAPTER

The Relationship Between a Scan and a Fold

The way APL and Q view it, is that a scan is kind of a fold with extra information. But in this other view, it's like the scan and the fold both tell you different information about what you get when you're traversing the array. So if I understood that correctly, your exclusive scan is similar to the C++ one where it takes an initial value and gives you back an elements.

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