Is there always a way to implement an algorithm without mutable state?

The Eric Normand Podcast - A podcast by Eric Normand

Categories:

It’s tempting to use mutable state in your algorithm. It’s so convenient! And we’re so used to it, if we come from an imperative paradigm. But we must remember that there is always a way, even if it’s not immediately obvious. I go over two ways to implement an algorithm without mutable state.