Build your own lazy operation evaluator in Elixir
I’m always fascinated by how Elixir’s Stream module handles operations lazily by storing them in a struct. So simple but so brilliant! 🤯
I wanted to see what it’d be like to write a simple implementation of a lazy math evaluator.
Hope you like it!
✍️ https://www.germanvelasco.com/blog/build-your-own-lazy-operation-evaluator-in-elixir