Sounds good to me, since it can be considerably cheaper than the options we
have today.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Thu, Jul 13, 2017 at 4:45 PM, Parker Selbert <[email protected]>
wrote:

> Recently I discovered an application bug that stemmed from the use of
> MapSet.subset?/2. The code was attempting to check whether there was any
> overlap between two sets, but the use of subset?/2 is order dependent.
> The solution was to use MapSet.disjoint?/2 and check if the result was
> false, but that was not obvious and feels backwards.
>
> I'm proposing the addition of MapSet.intersect?/2, which will check
> whether two sets have any members in common. For larger sets the best case
> performance would be better than "not disjoint", and it would be a more
> obvious solution.
>
> Thoughts?
>
> — Parker
>
> --
> 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/15f6857f-6f2e-49fe-ad2b-
> b214b2b12e98%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/15f6857f-6f2e-49fe-ad2b-b214b2b12e98%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGnRm4%2BYJyMXkKcLQPScqVgrpUH2UNTTLV%3DP1yAVNfEj%2BpVj4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to