Source file
test/fixedbugs/issue57846.go
1
2
3
4
5
6
7 package main
8
9 func Float64D3(list [][][]float64, value float64) int {
10 valueCount := 0
11 for _, listValue := range list {
12 valueCount += Float64D2(listValue, value)
13 }
14 return valueCount
15 }
16
17 func Float64(list []float64, value float64) int {
18 valueCount := 0
19 for _, listValue := range list {
20 if listValue == value {
21 valueCount++
22 }
23 }
24 return valueCount
25 }
26
27 func Float64D2(list [][]float64, value float64) int {
28 valueCount := 0
29 for _, listValue := range list {
30 valueCount += Float64(listValue, value)
31 }
32 return valueCount
33 }
34
View as plain text