Skip to content

Override map, where and expand methods in PersistentMap to return PersistentMap<K, V> as type, instead of Iterable<Pair<K, V>> #1

@rafael-brandao

Description

@rafael-brandao

The current implementation of PersistentMap does not override Iterable methods like map, where and expand.

A client of PersistentMap that calls myPersistentMap.where((pair) => ...); is clearly expecting another PersistentMap as return, but he gets an Iterable<Pair<K, V>> instead.

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