hi, elixir team! I'm using elixir in some projects, and I often using `--` operator like this: ``` list1 = [1, 2, 3] list2 = [2, 4]
new_list = list1 -- list2 ``` I think is the easiest way to find the element in list1 and not in list2. But it seems very expensive, as this article said: http://erlang.org/doc/efficiency_guide/commoncaveats.html#id64604 Could we add a function like `List.minus` or `List.remove` to do this operation in a better way? -- 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/29f1a6c9-2329-464d-b45f-8669ba7dd254%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
