Nice, thanks for the heads up. Yep, it works exactly the way I want. However, it would be nice to have that pattern matching option. Without having to call the Enum module. But yeah, if you guys think just using `Enum.filter` is enough. I’m okay. Thanks, Randson From: 'Andrey Yugai' via elixir-lang-core Hey Randson, have you seen `Enum.filter`? It does almost exactly what you want, except for any enumerable, not just list. -------- Original Message -------- On 7 Jun 2022, 18:31, Randson < [email protected]> wrote: Currently, the function `List.delete` only works for a single field. What I want to add is the possibility to delete multiple fields by passing a list of fields I want to remove. Can be like this one: ```elixir List.delete([:a, :b, :c, :d, :e], [:a, :b]) #=> [:c, :d, :e] ``` Or, it can be a new function to totally deal with that. like: ```elixir List.delete_many([:a, :b, :c, :d, :e], [:a, :b]) #=> [:c, :d, :e] ``` What do you guys think about that? Cheers, Randson -- 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/fdbd07d7-22af-4af8-b5cf-2823727e33ebn%40googlegroups.com. -- 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/408AC7DA-48A9-4AAB-B09D-965F12328479%40hxcore.ol. |
- [elixir-core:10915] [Proposal] List.de... Randson
- Re: [elixir-core:10915] [Proposal... 'Andrey Yugai' via elixir-lang-core
- RE: [elixir-core:10916] [Prop... Randson Oliveira
- Re: [elixir-core:10917] [... 'Andrey Yugai' via elixir-lang-core
- Re: [elixir-core:10918] [Proposal... Zach Daniel
- Re: [elixir-core:10919] [Proposal... Wojtek Mach
- Re: [elixir-core:10920] [Prop... Zach Daniel
