An optimization using the foldr fusion law

Because I find this exercise ([1]) very instructive, I want to show you how the foldr fusion law can be used to derive an efficient program from a very inefficient one. This note will let you see some important points:… Continue Reading →

Share Button

How do you find a function that…

In this post we’ll deal only with finite lists. Questions regarding partial and infinite lists are left as an exercise for the reader. Sometimes we have to answer questions like: I have something that looks like a functional equation, but… Continue Reading →

Share Button

© 2022 — Powered by WordPress

Theme by Anders NorenUp ↑