/home/siddhi - python

Software, Geekery and other miscellany

Monads in Functional Programming

The idea of doing a computation within a special context isn't unique to quantum computing. Functional programming has a concept called the monad that does something similar. This is how it works: you have an input value and you want to perform a sequence of calculations within a certain special …