Skip to content

Map.addAll() #6415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
munificent opened this issue Oct 31, 2012 · 2 comments
Closed

Map.addAll() #6415

munificent opened this issue Oct 31, 2012 · 2 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@munificent
Copy link
Member

In my code, I recently found myself doing:

environment.forEach((key, value) => options.environment[key] = value);

Today, I find myself reviewing code that defines:

void mapAddAll(Map destination, Map source) =>
  source.forEach((key, value) => destination[key] = value);

Maybe Map should have an addAll() method that does this?

@DartBot
Copy link

DartBot commented Oct 31, 2012

This comment was originally written by @seaneagan


Dupe of issue #2644

@lrhn
Copy link
Member

lrhn commented Nov 4, 2012

Added Duplicate label.
Marked as being merged into #2644.

@munificent munificent added Type-Enhancement area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report labels Nov 4, 2012
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants