Seeing Enum.all?/2 being available made me assume there was also an Enum.none?/2 (like in Ruby), and I was a bit surprised 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 and 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've already implemented it in my own fork so if anyone wants to try it out: https://github.com/zvonimirr/elixir Thoughts? -- 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/CA%2Bg2aMfERQxMP5pJv%3D6bcx0aDDSjtYTNkwduPci1R%3DRsGG23Gg%40mail.gmail.com.