1// compile 2 3// Copyright 2023 The Go Authors. All rights reserved. 4// Use of this source code is governed by a BSD-style 5// license that can be found in the LICENSE file. 6 7package main 8 9func 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 17func 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 27func 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