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

Method NewComprehension

common/ast/factory.go:31–31  ·  view source on GitHub ↗

NewComprehension creates an Expr value representing a one-variable comprehension over a value range.

(id int64, iterRange Expr, iterVar, accuVar string, accuInit, loopCondition, loopStep, result Expr)

Source from the content-addressed store, hash-verified

29
30 // NewComprehension creates an Expr value representing a one-variable comprehension over a value range.
31 NewComprehension(id int64, iterRange Expr, iterVar, accuVar string, accuInit, loopCondition, loopStep, result Expr) Expr
32
33 // NewComprehensionTwoVar creates an Expr value representing a two-variable comprehension over a value range.
34 NewComprehensionTwoVar(id int64, iterRange Expr, iterVar, iterVar2, accuVar string, accuInit, loopCondition, loopStep, result Expr) Expr

Callers 7

TestConvertExprFunction · 0.95
TestSetKindCaseFunction · 0.95
TestComprehensionFunction · 0.95
FoldMethod · 0.65
optMapFunction · 0.65
optFlatMapFunction · 0.65
NewBindMacroMethod · 0.65

Implementers 1

baseExprFactorycommon/ast/factory.go

Calls

no outgoing calls

Tested by 3

TestConvertExprFunction · 0.76
TestSetKindCaseFunction · 0.76
TestComprehensionFunction · 0.76