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

Function templatedOverloads

ext/lists.go:732–738  ·  view source on GitHub ↗
(types []*cel.Type, template func(t *cel.Type) cel.FunctionOpt)

Source from the content-addressed store, hash-verified

730}
731
732func templatedOverloads(types []*cel.Type, template func(t *cel.Type) cel.FunctionOpt) []cel.FunctionOpt {
733 overloads := make([]cel.FunctionOpt, len(types))
734 for i, t := range types {
735 overloads[i] = template(t)
736 }
737 return overloads
738}
739
740// estimateListSlice computes an O(n) slice operation with a cost factor of 1.
741func estimateListSlice(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode) *cost.CallEstimate {

Callers 1

CompileOptionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected