Great Xavier, your answer shows what I think about returning true when a list is empty.
I'm pretty sure the name could be a better one. However, I think we could have a function for these cases and not only a parameter or something else. That's why I came with every?/2, if you guys agree with us we can have a better name for this ocasion. - Randson On Thu, Jan 21, 2021, 12:53 Xavier Noria <[email protected]> wrote: > On Thu, Jan 21, 2021 at 3:31 PM eksperimental <[email protected]> > wrote: > > Adding Xavier's explanation to the documentation would be of great >> help, and easier to spot if they are contained in its own section. > > > Makes sense, it is an edge case that may surprise if you've never seen > this logic before. I'll volunteer a doc patch. > > -- > 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%3DYcdg_iY9sxHKbOcB5gXMpdpkFb6RBvAYhU4WP%2B%3DH04F28PQ%40mail.gmail.com > <https://groups.google.com/d/msgid/elixir-lang-core/CAM%3DYcdg_iY9sxHKbOcB5gXMpdpkFb6RBvAYhU4WP%2B%3DH04F28PQ%40mail.gmail.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAPfFtHY1eht3XaLRMmxAbn3bsnOZQbpOGj_-mPGC%2B_Tw8e9Fvg%40mail.gmail.com.
