:maps.with/2 is Map.take/2, :maps.without/2 is Map.drop/2. The elixir names for those functions are consistent with the rest of Elixir's stdlib, where most collection data structures have both those functions.
Regards, Michał Muskała. On 19 Dec 2016, 08:16 +0100, Juraj Hlista <[email protected]>, wrote: > Hi, > > the function Map.take/2 does the same as :maps.with/2, so I sent a PR - > https://github.com/elixir-lang/elixir/pull/5575 > > There is also :maps.without/2 in Erlang. However, there is nothing like that > in Map module (Map.untake/2 is probably a bad name). What about adding > Map.with/2 and Map.without/2 functions? > -- > 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/55089abb-dce8-4856-9c51-ee07f31464bc%40googlegroups.com. > 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/2a0bdfd9-19de-4aed-91c0-10bc4a15cb6a%40Spark. For more options, visit https://groups.google.com/d/optout.
