Logical comparisons like Enum.count(x) > y could exit out when count of x exceeds y. potentially saving huge amounts of time with larger collections, or be changed to Enum.count_until(x, y) by the compiler.
P.s. I dont create many issue reports, hopefully my formatting is ok :)
As mentioned on Elixir Forum
Logical comparisons like
Enum.count(x) > y
could exit out when count of x exceeds y. potentially saving huge amounts of time with larger collections, or be changed to Enum.count_until(x, y) by the compiler.P.s. I dont create many issue reports, hopefully my formatting is ok :)