miss-elixir
miss-elixir copied to clipboard
What do you miss?
What do you miss in Elixir that is not part of the standard library?
This issue is an open space to suggest a new feature in Miss Elixir library.
For example:
- A function that you would like to use in an existing Elixir module.
- Some function/module that you created inside your own application for generic purposes.
- An idea for a new module.
- A suggestion you made to the Elixir standard library that was reject.
The idea here is not to compete with Elixir features, but to have an opportunity to bring ideas for reusable common functions that for different reasons are not part (yet) of the Elixir standard library.
Read about the motivation behind creating the Miss Elixir library in this blog post: https://fernandohamasaki.com/miss-elixir.
You can drop your ideas in the comments. For potential new functions/features, new issues would be created to be refined or discussed in more details.
💜
Would be good to have a function to drop fields from a map by a given value, something like this:
iex> Miss.Map.drop_by_value(%{foo: "bar", bar: nil}, nil)
%{foo: "bar"}
It could even work with a list of values:
iex> Miss.Map.drop_by_value(%{foo: "bar", bar: nil}, [nil, "bar"])
%{}
WDYT?