github.com/traefik/yaegi@v0.15.1/_test/issue-782.go (about) 1 package main 2 3 import "fmt" 4 5 func main() { 6 a := []int{1, 2, 3, 4, 5, 6, 7, 8, 9} 7 from := uint32(2) 8 to := uint32(4) 9 b := a[from:to] 10 fmt.Print(b) 11 } 12 13 // Output: 14 // [3 4]