I don't think there is anything that makes it hard to implement, except the
conceptual issues that happen from such feature. If there are duplicate
keys, which one wins? The other concern is that the Access API is also
mostly specific to one data type, so we would need a new  function for maps
and I am not sure if it is worth it. It may be best to roll your own. :)


*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D


On Tue, Jun 25, 2019 at 6:26 PM Johanna Larsson <
[email protected]> wrote:

> I recently found the need for, and implemented, a version of
> `Access.all/0` that handles maps. The implementation is very similar to the
> one for lists, so I'm curious if anyone has any insight into why there's no
> built-in version for maps. If there's something I'm missing that makes it
> difficult to implement in a nice way that doesn't have weird corner cases,
> or if there just hasn't been a perceived need for it.
>
> I tried searching this mailing list and the Github repo but I wasn't able
> to spot anything related to "Access.all".
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/88ae7e74-5bbb-4b3e-9eaf-cc1344a114e5%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/88ae7e74-5bbb-4b3e-9eaf-cc1344a114e5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BqSYHm6ktwCSBGzhMq9aUums48H9P0ka8rojMkwuNoeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to