On Thu, Jan 21, 2021 at 1:47 PM Randson <[email protected]> wrote:

I put a name every because I want to ask if every member on the list
> satisfy such a condition.
>

Yes, I understand. But it would be confusing, every? and all? are synonyms.
They are both universal quantifiers, and both should return true for empty
collections.

So, you really need something else added to the name of the function, or
add an option to all?.

Personally, I do not find a good name for this, and do not see it in Enum
as such, the idiomatic test is not empty? and all?

Also, personally do not quite see an option in all?, because all? is all?,
all? AND not-empty is like mixing two unrelated things in one call, to 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAM%3DYcdgv0iV35uxXEzeLweqQqYfe4%3DsGwbP1WKROyPuSU6O85g%40mail.gmail.com.

Reply via email to