Skip to content

Multimap doesn't use insertion-order iteration for keys #358

@har79

Description

@har79

Multimap is backed by a HashMap, rather than a LinkedHashMap, so Multimap.keys returns an iterable with random iteration order. This seems inconsistent with Dart's default collections which all use insertion order for iteration; so can cause unexpected results and requires synchronisation with an additional collection when consistent ordering is required.

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