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

Function SingletonFunctionImpl

cel/decls.go:283–285  ·  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

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

Callers 1

Calls 1

SingletonFunctionBindingFunction · 0.92

Tested by 1