MCPcopy Create free account
hub / github.com/cel-expr/cel-go / variadicLogicalOperatorASTs

Function variadicLogicalOperatorASTs

cel/options.go:234–236  ·  view source on GitHub ↗

variadicLogicalOperatorASTs flatten like-operator chained logical expressions into a single variadic call with N-terms. This behavior is useful when serializing to a protocol buffer as it will reduce the number of recursive calls needed to deserialize the AST later. For example, given the following

()

Source from the content-addressed store, hash-verified

232// expression: a && b && c && (d || e)
233// ast: call(_&&_, [a, b, c, call(_||_, [d, e])])
234func variadicLogicalOperatorASTs() EnvOption {
235 return features(featureVariadicLogicalASTs, true)
236}
237
238// Macros option extends the macro set configured in the environment.
239//

Callers 1

Calls 1

featuresFunction · 0.85

Tested by 1