
Fold and Other Functional Conjunctions
The Array Cast
00:00
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
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.