r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 05 '22

[deleted]

0

u/[deleted] Apr 05 '22

[deleted]

1

u/XilamBalam Apr 05 '22

A monoid Is just a category with one object. A group is a monoid in which every arrow is invertible (i.e. for all arrow a in Hom(C) exists a-1 such that a*a-1 =Id).

1

u/ExtraFig6 Apr 06 '22

for a monad is a monoid in the category of endofunctors, I think you need this version of monoid https://en.wikipedia.org/wiki/Monoid_(category_theory) which adapts the definition so it can apply to like relationships between objects in a category

→ More replies (3)