Hi!

I could not find a final reply for this thread, here nor at Github, so I am 
here to ask and argue why this would be a useful function.

I am writing some tests where I pattern match just a few keys of my map 
objects using Map.take. Developers could type invalid keys and the tests 
would still pass. 
If you are open to receive an implementation for this I can work on it and 
give my first piece of contribution.

Sorry for reviving something deep in the past if its already solved.

Warm Regards,
Tallys Martins

Em quarta-feira, 30 de novembro de 2016 21:25:18 UTC-2, Aaron Tinio 
escreveu:
>
> Map.take!(map, keys)
>
> Same as Map.take/2 but raises a KeyError when one of the keys doesn't 
> exist.
>

-- 
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/6c898b72-6626-4738-8331-cdee13cff251%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to