3 ms·
Have a look at this blog post, it contains the bit I got that fold description from: https://philipnilsson.github.io/Badness10k/algebraic-patterns-monoid/ http
by leshow 8y ago
Have a look at this blog post, it contains the bit I got that fold description from:
https://philipnilsson.github.io/Badness10k/algebraic-patterns-monoid/ https://philipnilsson.github.io/Badness10k/algebraic-pattern...
Back to my first post, I don't think it's not wrong to describe these operations as monoidal. Or to say that a monoidal operation implies something can be run in parallel, this whole thing feels a bit pedantic.
edit: I don't know how you can say monoids for lists have nothing to do w/ empty lists considering the definition is literally:
-- Identity laws
x <> mempty = x
mempty <> x = x
Which is exactly what I posted before
- leshow 8y agoshould read: "It's not wrong to describe these operations as monoidal..."