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

Function ListsMaxRangeSize

ext/lists.go:268–273  ·  view source on GitHub ↗

ListsMaxRangeSize sets the maximum number of elements lists.range() will allocate. If not set, the default is 1,000,000. Setting this to zero disables the limit (not recommended).

(size int64)

Source from the content-addressed store, hash-verified

266// allocate. If not set, the default is 1,000,000. Setting this to zero
267// disables the limit (not recommended).
268func ListsMaxRangeSize(size int64) ListsOption {
269 return func(lib *listsLib) *listsLib {
270 lib.maxRangeSize = size
271 return lib
272 }
273}
274
275// CompileOptions implements the Library interface method.
276func (lib listsLib) CompileOptions() []cel.EnvOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected