Learn everyday

Simple encoding function

A simple encoding function demonstration in several programming languages.

Photo by Jimmy Dean on Unsplash

So while I’m learning Haskell, I would try to write a simple encoding function then decode it back. Then add some more examples in other languages such as Scala, or Python.