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

Function SingletonFunctionImpl

cel/decls.go:279–281  ·  view source on GitHub ↗

SingletonFunctionImpl creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is expected to have a specific trait which it implements, e.g. traits.ContainerType. Otherwise, prefer per-overload function bindings. Deprecated: use Sin

(fn functions.FunctionOp, traits ...int)

Source from the content-addressed store, hash-verified

277//
278// Deprecated: use SingletonFunctionBinding
279func SingletonFunctionImpl(fn functions.FunctionOp, traits ...int) FunctionOpt {
280 return decls.SingletonFunctionBinding(fn, traits...)
281}
282
283// SingletonFunctionBinding creates a singleton function definition to be used with all function overloads.
284//

Callers 1

Calls 1

SingletonFunctionBindingFunction · 0.92

Tested by 1