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

Function inAggregate

common/stdlib/standard.go:926–931  ·  view source on GitHub ↗
(lhs ref.Val, rhs ref.Val)

Source from the content-addressed store, hash-verified

924}
925
926func inAggregate(lhs ref.Val, rhs ref.Val) ref.Val {
927 if rhs.Type().HasTrait(traits.ContainerType) {
928 return rhs.(traits.Container).Contains(lhs)
929 }
930 return types.ValOrErr(rhs, "no such overload")
931}
932
933func function(name string, opts ...decls.FunctionOpt) *decls.FunctionDecl {
934 fn, err := decls.NewFunction(name, opts...)

Callers

nothing calls this directly

Calls 4

ValOrErrFunction · 0.92
HasTraitMethod · 0.65
TypeMethod · 0.65
ContainsMethod · 0.65

Tested by

no test coverage detected