Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Abelian group is a sort of stringent requirement, they probably just mean a plain monoid? After all it works for python lists, which form a non-commutative monoid:

    [] + [] == []
    [1,2] + [3] != [3] + [1,2]


The additional property which makes a monoid a group is the existence of inverse elements. So list is a good example for your point, because there are no "inverse lists".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: