Skip to main content

and_collect

Function and_collect 

Source
pub fn and_collect<I>(iter: I) -> Option<Expression>
where I: IntoIterator<Item = Expression>,
Expand description

Collects a list of anded values into a single expression using a balanced tree.

This creates a balanced binary tree to avoid deep nesting that could cause stack overflow during drop or evaluation.

[a, b, c, d] => and(and(a, b), and(c, d))