Re: [elixir-core:10584] Proposal: Map.split_with/2

2021-12-13 Thread José Valim
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

[elixir-core:10584] Proposal: Map.split_with/2

2021-12-13 Thread Chris Miller
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 i