2min chapter

The Array Cast cover image

Fold and Other Functional Conjunctions

The Array Cast

CHAPTER

The Problem With Scanning

In scan the final result is the entire accumulated state after each move so what I'm going to have at the end it may be that I I decide that what my result is going to be. My intermediate state will be the board whose move it is and then what I really want which is how many pieces there are. It might turn out to be a problem to keep a copy of that intermediate state for each iteration of the argument particularly if you don't care about it at the very end of the day.

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