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

map is not defined on sets/dictionaries, but it should be #42132

Closed
na-sa-do opened this issue Sep 6, 2021 · 1 comment
Closed

map is not defined on sets/dictionaries, but it should be #42132

na-sa-do opened this issue Sep 6, 2021 · 1 comment
Labels
duplicate Indicates similar issues or pull requests

Comments

@na-sa-do
Copy link

na-sa-do commented Sep 6, 2021

Julia Version 1.6.2
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD Ryzen 7 3700X 8-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, znver2)

Attempting to Base.map a set or dictionary gives the specialized error messages "map is not defined on sets" and "map is not defined on dictionaries" respectively, even though map is (or at least should be) defined on any iterable, including DataStructures.jl's OrderedDict, OrderedSet, and their Sorted counterparts. Base.collect works on them, anyway (and provides a workaround).

@na-sa-do na-sa-do changed the title map is not defined on sets, but it should be map is not defined on sets/dictionaries, but it should be Sep 6, 2021
@jakobnissen
Copy link
Contributor

map is currently not defined for sets and dicts because there is no agreement about what it should return. You can find the issue here: #5794

@nsajko nsajko added the duplicate Indicates similar issues or pull requests label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Indicates similar issues or pull requests
Projects
None yet
Development

No branches or pull requests

4 participants