I think negated `Enum.any?` should be equal to `Enum.none?` in all cases. Also 
do you have an example where `Enum.none?` would be useful?

-------- Original Message --------
On 18 Jun 2022, 17:35, Zvonimir Rudinski wrote:

> Seeing Enum.all?/2 being available made me assume there was also an 
> Enum.none?/2 (like in Ruby), and I was a bit suprised to learn there was no 
> such thing.
> I'm aware that I could just do !Enum.all?/2, but Enum.none?/2 sees much nicer 
> to me.
>
> One more argument that I could make is that !Enum.all?/1 == Enum.none?/1 is 
> not true in all cases.
> Example:
> If we have [false, true], !Enum.all?/1 will be true, but Enum.none?/1 will be 
> false
>
> I would like your thoughts on this one.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> [https://groups.google.com/d/msgid/elixir-lang-core/0b68e108-825f-49d5-86ec-317caa2a852fn%40googlegroups.com](https://groups.google.com/d/msgid/elixir-lang-core/0b68e108-825f-49d5-86ec-317caa2a852fn%40googlegroups.com?utm_medium=email&utm_source=footer).

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/lf00XGREbqr2qmaCikCcT9VFdHVLCJYSU4rwuAoDMRyYMRFRieta26V1ppdMZCDL0Kus6ikMPn0yTjOR5IXb-Sn_9NtAJx15BTL70OHzojw%3D%40pm.me.

Reply via email to