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

Method NewComprehensionTwoVar

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

NewComprehensionTwoVar creates a new two-variable comprehension instruction. - iterRange represents the expression that resolves to a list or map where the elements or keys (respectively) will be iterated over. - iterVar is the iteration variable assigned to the list index or the map key. - iterVar

(iterRange ast.Expr,
		iterVar,
		iterVar2,
		accuVar string,
		accuInit,
		condition,
		step,
		result ast.Expr)

Source from the content-addressed store, hash-verified

258 // environment in the step and condition expressions. Presently, the name __result__ is commonly
259 // used by built-in macros but this may change in the future.
260 NewComprehensionTwoVar(iterRange ast.Expr,
261 iterVar,
262 iterVar2,
263 accuVar string,

Callers 10

pruneMethod · 0.65
CopyMethod · 0.65
quantifierAllFunction · 0.65
quantifierExistsFunction · 0.65
quantifierExistsOneFunction · 0.65
transformListFunction · 0.65
transformMapFunction · 0.65
transformMapEntryFunction · 0.65

Implementers 1

exprHelperparser/helper.go

Calls

no outgoing calls

Tested by

no test coverage detected