4min chapter

The Array Cast cover image

Fold and Other Functional Conjunctions

The Array Cast

CHAPTER

How to Solve a Uh Too Much Memory Problem

Full is trying to solve those two problems we need that we want to be able to terminate early and avoid excessive intermediate state. fold fold does this the the syntax it's a conjunction so you say you fold v and it is very much like scan except that it's usually used as a diet. for transfer but what interesting you mentioned here is finding the first five numbers that have some property i have very shy numbers under a million that has some some property but maybe more natural would be to ask find me the first 5 numbers and not give an upper bound in which case even starting off with a million numbers and stopping out shortness quite right quite right yes there's possibility that yeah you can

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