Skip to content
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

Spread maps into maps #5

Open
peterjoel opened this issue Dec 9, 2020 · 0 comments
Open

Spread maps into maps #5

peterjoel opened this issue Dec 9, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@peterjoel
Copy link
Owner

It would be nice to be able to do this:

let map1 = hash_map! { 
    ..(0..5): 1,
    ..(5..10): 2,
    10: 10,
}

let map2 = hash_map! {
    ..map1,  // <-- currently not supported
    ..(11..20): 20,
}
@peterjoel peterjoel added the enhancement New feature or request label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant