Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is array concatenation a monoid? #243

Open
thanhnguyen2187 opened this issue Jun 12, 2023 · 0 comments
Open

Is array concatenation a monoid? #243

thanhnguyen2187 opened this issue Jun 12, 2023 · 0 comments

Comments

@thanhnguyen2187
Copy link

I'm not so sure about the monoid section, where it's stated that:

Array concatenation also forms a monoid

With the example:

[1, 2].concat([3, 4])

I don't feel like array concatenation satisfies "associativity" at all, since a.concat(b) clearly differs from b.concat(a). Can someone explain this for me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant