r/functionalprogramming • u/tbsdy • Jan 01 '25
Question Functional programming and algebraic structures
I have been looking at algebraic structures (in particular groups) in functional programming. I have been fascinated by how monoids in particular have a wide applicability to the functional programming paradigm. However, I am curious why we don’t seem to have found a way of applying quasigroups and loops to functional programming.
Has anyone ever seen these algebraic structures used in functional programming, outside the use of cryptography?
29
Upvotes
View all comments
Show parent comment
0
u/tbsdy Jan 02 '25
No, they also have divisibility.
They are categorised like the below:
https://en.m.wikipedia.org/wiki/Quasigroup#/media/File%3AMagma_to_group4.svg
A Quasigroup is a group, but the associative and identity element properties are optional.
A semigroup must be associative. A monoid is a specialization of a semigroup and must have the identity element property.