Hi Chris, Thanks for the proposal.
I would like to first see benchmarks that show a Map implementation can be considerably more efficient. Otherwise, if it is about saving a couple Map.new calls, then I would rather not add it, as it will move to copying many more functions from Enum to Map. On Mon, Dec 13, 2021 at 7:42 PM Chris Miller <camiller...@gmail.com> wrote: > Is there any interest in adding a `Map.split_with/2` that would take a > function of `{key :: any(), value :: any()} -> boolean` and returns > `{map_where_true :: map(), map_where_false :: map()}`? > > I know this functionality can be created easily with the functionality > thats already exposed, but it seems like it might be a nice addition and > would add greater parity between Enum and Map - it could also be added to > Keyword, even thought the distinction between Keyword.split_with and > Enum.split_with would be nominal. > > > -- > 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 elixir-lang-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/0a7b4be9-ccb9-4c6a-b482-96379a6a9a18n%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/0a7b4be9-ccb9-4c6a-b482-96379a6a9a18n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4K4M5Fc3pq3AUioWLvN4o69jy3qD%3DGPYRSXFiKWFBcKuw%40mail.gmail.com.