It doesn't quite apply to `Map.take/2` because the field may not be there
anyway, so you can't easily pattern match, you always need a case.

I also see why we would add "delete!" but at the same time, "delete!" does
not have much purpose. The result won't have said field anyway.

Now I am thinking it may be better to not add `Map.take!/2`. It is not
complicated to implement it yourself and given the possible confusion with
pattern matching and that it may require both drop! and delete!, it is
probably not worth it. So for now I would like to postpone adding this
functionality. Sorry.

-- 
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/CAGnRm4LZsHUBFkBH19w4-UNgApYuBAQj4K4vrhAu43NQz47%3D5g%40mail.gmail.com.

Reply via email to