Counting a list, especially a large one, to know if there are "more than x" or "less than x" items is inefficient.
Right now I often see things like `if Enum.count(list) > 4 ...`, mostly because writing a recursive `more_than?` check is tedious, or doing something like `Enum.empty?(Enum.drop(list, 4))` is not very expressive. I think it would be nice to have an `Enum.more_than?` that does that work for you. It could also be `List.more_than?/2` if we don't want it in Enum. Any 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/263d7c39-a32b-4294-93d8-40f248c9b3c8n%40googlegroups.com.