Source file
test/codegen/spectre.go
1
2
3
4
5
6
7
8
9 package codegen
10
11 func IndexArray(x *[10]int, i int) int {
12
13 return x[i]
14 }
15
16 func IndexString(x string, i int) byte {
17
18 return x[i]
19 }
20
21 func IndexSlice(x []float64, i int) float64 {
22
23 return x[i]
24 }
25
26 func SliceArray(x *[10]int, i, j int) []int {
27
28 return x[i:j]
29 }
30
31 func SliceString(x string, i, j int) string {
32
33 return x[i:j]
34 }
35
36 func SliceSlice(x []float64, i, j int) []float64 {
37
38 return x[i:j]
39 }
40
View as plain text