Open
Description
Is your feature request related to a problem or challenge?
As @berkaysynnada mentioned in #15462 (comment), there are two more cases that could benefit from short-circuit optimization.
Describe the solution you'd like
[true, true, true... true] AND [xxx] => return rhs, which is [xxx]
[false, false, false... false] OR [xxx] => return rhs, which is [xxx]
Describe alternatives you've considered
No response
Additional context
No response