The Array Cast cover image

Fold and Scan

The Array Cast

00:00

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.

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