all(x, x > 1) && all(x, x < 10) -> all(x, x > 1 && x < 10)
any(x, x > 1) || any(x, x < 10) -> any(x, x > 1 || x < 10)
none(x, x > 1) && none(x, x < 10) -> none(x, x > 1 || x < 10)
This time I focused only on 3 cases: all with and, any with or, none with and and included comprehensive tests for this optimization and logical operations between any/all/none/one
Seconds attempt at implementing this:
Previous one (https://github.com/expr-lang/expr/pull/555) wasn't successful and unfortunately introduced a significant bug (https://github.com/expr-lang/expr/issues/624).
This time I focused only on 3 cases:
all
withand
,any
withor
,none
withand
and included comprehensive tests for this optimization and logical operations betweenany
/all
/none
/one