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
--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-core" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-core/AyVo9hhqxlY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/H1mZSgNhjjzBqpJUZA-kQNGcDSJOvNG1ax1Qjhy4DRYUq5HRp793gA2uCewhNXzfeWExVechxk0qTniq5_JquJ-faOnti-lphV8N5cH1iVU%3D%40pm.me.
--
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+unsubscribe@googlegroups.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 elixir-lang-co...@googlegroups.com.
The --/2 operator already does this. :)
iex(1)> [:a, :b, :c, :d, :e] -- [:a, :b][:c, :d, :e]
On 7 Jun 2022, at 17:31, Randson <orandson@gmail.com> 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:```elixirList.delete([:a, :b, :c, :d, :e], [:a, :b])#=> [:c, :d, :e]```Or, it can be a new function to totally deal with that. like:```elixirList.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 elixir-lang-core+unsubscribe@googlegroups.com.
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 elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/A68DF5BE-1899-4873-98BE-F58319E70150%40wojtekmach.pl.