Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What do you miss? #5

Open
prodis opened this issue Jun 8, 2021 · 1 comment
Open

What do you miss? #5

prodis opened this issue Jun 8, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@prodis
Copy link
Owner

prodis commented Jun 8, 2021

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.

💜

@prodis prodis added the question Further information is requested label Jun 8, 2021
@prodis prodis self-assigned this Jun 8, 2021
@rauann
Copy link

rauann commented Jul 2, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants