Just for completeness, if we add those functions, we also need to add
Map.drop! and Keyword.drop!. Btw, your description here makes more sense,
as I can see this feature being useful for keywords, but not really for
maps. Do you have some code snippets you could show us too?

Thanks Valter!

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


On Sun, Jan 20, 2019 at 7:36 PM Valter Sundström <[email protected]>
wrote:

> I somewhat often find myself wanting to take subsets of maps and keywords
> lists, verifying that all keys I take exist.
> An initial PR for this is available here
> <https://github.com/elixir-lang/elixir/pull/8657>, but as josé pointed
> out, a discussion needs to be had regarding the need for it.
> One of my main usages of this is for example when initializing the state
> of a `GenServer`, or if extracting some options from a keyword list to pass
> along to some other module.
> Please chime in if you have any opinions!
>
> // Valter
>
> --
> 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/5990bdcd-83d2-4925-8af6-79bbaa488667%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/5990bdcd-83d2-4925-8af6-79bbaa488667%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/CAGnRm4LQ8D6%3D5xopTng5DJHzwaiACq9NVGgFDp9JxNvbsDMYCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to