3 ms·
That's actually the only correct part of the blog, arrays form monoids via concatenation and empty arrays. That's algebra tho, which is very relevant to functi
by epolanski 5y ago
That's actually the only correct part of the blog, arrays form monoids via concatenation and empty arrays.
That's algebra tho, which is very relevant to functional programming (monoids capture the essence of composition) in general, but not the right monoids in category theory.
- devit 5y agoOf course they form a monoid with concatenation, but it's not the monoid that makes the monad (which should be pretty obvious since concatenation is not used in the monad operations for arrays).
- lkitching 5y agoThe type of join for arrays is Array (Array a) -> Array a which should concatenate all the inner arrays together.