MCPcopy Create free account
hub / github.com/expr-lang/expr / MakeRange

Function MakeRange

vm/runtime/runtime.go:311–321  ·  view source on GitHub ↗
(min, max int)

Source from the content-addressed store, hash-verified

309}
310
311func MakeRange(min, max int) []int {
312 size := max - min + 1
313 if size <= 0 {
314 return []int{}
315 }
316 rng := make([]int, size)
317 for i := range rng {
318 rng[i] = min + i
319 }
320 return rng
321}
322
323func ToInt(a any) int {
324 switch x := a.(type) {

Callers 1

RunMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…