Skip to content

fromListWith is confusing #264

@sjakobi

Description

@sjakobi

This is rather surprising:

> fromListWith (++) [(False,"x"),(False,"y")]
fromList [(False,"yx")]

"Intuitively", the value in the result should be "xy".

Note that the versions of fromListWith[Key] in Data.Map and Data.IntMap from containers have the same issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions