Skip to content

Is array concatenation a monoid? #243

@thanhnguyen2187

Description

@thanhnguyen2187

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions