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

Function MakeExists

parser/macro.go:476–478  ·  view source on GitHub ↗

MakeExists expands the input call arguments into a comprehension that returns true if any of the elements in the range match the predicate expressions: .exists( , )

(eh ExprHelper, target ast.Expr, args []ast.Expr)

Source from the content-addressed store, hash-verified

474// elements in the range match the predicate expressions:
475// <iterRange>.exists(<iterVar>, <predicate>)
476func MakeExists(eh ExprHelper, target ast.Expr, args []ast.Expr) (ast.Expr, *common.Error) {
477 return makeQuantifier(quantifierExists, eh, target, args)
478}
479
480// MakeExistsOne expands the input call arguments into a comprehension that returns true if exactly
481// one of the elements in the range match the predicate expressions:

Callers 1

ExistsMacroExpanderFunction · 0.92

Calls 1

makeQuantifierFunction · 0.85

Tested by

no test coverage detected