In the previous post we discussed different kinds of monoids which are commonly found in programming languages. These include Number, Array and String. We also discussed how every object in a category is a monoid where the elements are arrows and the operation is composition. A monoid in this sense "adds" arrows through composition.
Share this post
Basic Category Theory for Programmers, Part…
Share this post
In the previous post we discussed different kinds of monoids which are commonly found in programming languages. These include Number, Array and String. We also discussed how every object in a category is a monoid where the elements are arrows and the operation is composition. A monoid in this sense "adds" arrows through composition.