The Array Cast cover image

Fold and Scan

The Array Cast

CHAPTER

The Differences Between Scan and Fold in APL

With fold, although there's all these extra characters, I think fold can actually do cadain's algorithm the way you like now. This is great. It couldn't back then probably because you had to do a bunch of reverses. And the thing that you're working against with scan is that APL and J and BQN everybody evaluates right to left. Not K, actually. Not K? No. K goes left to right, which we should go into. But yeah, Marshall, you dive into the semantic differences that you were just mentioning.

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