Function cedar_policy_core::ast::split

source ยท
pub fn split<I>(
    i: I,
) -> Either<impl Iterator<Item = Value>, impl Iterator<Item = Expr>>
where I: IntoIterator<Item = PartialValue>,
Expand description

Collect an iterator of either residuals or values into one of the following a) An iterator over values, if everything evaluated to values b) An iterator over residuals expressions, if anything only evaluated to a residual Order is preserved.