State monad in fp-ts
Consider the gumball machine    It is in a unpaid or paid state and the output of it is either...
Tags: functional, typescript