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

Function MakeExistsOne

parser/macro.go:483–485  ·  view source on GitHub ↗

MakeExistsOne expands the input call arguments into a comprehension that returns true if exactly one of the elements in the range match the predicate expressions: .exists_one( , )

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

Source from the content-addressed store, hash-verified

481// one of the elements in the range match the predicate expressions:
482// <iterRange>.exists_one(<iterVar>, <predicate>)
483func MakeExistsOne(eh ExprHelper, target ast.Expr, args []ast.Expr) (ast.Expr, *common.Error) {
484 return makeQuantifier(quantifierExistsOne, eh, target, args)
485}
486
487// MakeMap expands the input call arguments into a comprehension that transforms each element in the
488// input to produce an output list.

Callers 1

ExistsOneMacroExpanderFunction · 0.92

Calls 1

makeQuantifierFunction · 0.85

Tested by

no test coverage detected