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
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