Skip to content

Map's getKeys() / getValues() should be keys / values #1248

Closed
@DartBot

Description

@DartBot

This issue was originally filed by @seaneagan


Map's getKeys() and getValues() return Collections which are backed by the Map, as in Java. This means none of the Map's keys / values are actually copied. Thus, these methods are O(1). Thus, they should satisfy all the criteria in the Dart style guide (http://www.dartlang.org/articles/style-guide/) for getters:

Not take any arguments.
Return a value.
Be side-effect free.
Be fast.

The obvious names for these getters are "keys" and "values".

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions