Skip to content

Change union to be right-biased #2

@fehrenbach

Description

@fehrenbach

I'd quite like this to hold:

fromFoldable (a <> b) == fromFoldable a <> fromFoldable b

fromFoldable is repeated insertion by foldl. I assume the reason is to match Haskell's fromList which uses foldl', which makes sense for lists.
(<>) is union is unionWith const and that simple implementation seems to be the only reason (and Haskell does it that way).

What do people think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions