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

Method NewList

cel/macro.go:418–420  ·  view source on GitHub ↗

NewList creates a CreateList instruction where the list is comprised of the optional set of elements provided as arguments.

(elems ...*exprpb.Expr)

Source from the content-addressed store, hash-verified

416// NewList creates a CreateList instruction where the list is comprised of the optional set
417// of elements provided as arguments.
418func (ah *adaptingHelper) NewList(elems ...*exprpb.Expr) *exprpb.Expr {
419 return mustAdaptToProto(ah.modernHelper.NewList(mustAdaptToExprs(elems)...))
420}
421
422// NewMap creates a CreateStruct instruction for a map where the map is comprised of the
423// optional set of key, value entries.

Callers

nothing calls this directly

Calls 3

mustAdaptToProtoFunction · 0.85
mustAdaptToExprsFunction · 0.85
NewListMethod · 0.65

Tested by

no test coverage detected