func Find(dst []int, src []float64, f func(v float64) bool) []int {

	if dst == nil {
		dst = make([]int, 0, len(src))
	}

	dst = dst[:0]
	for i, x := range src {
		if f(x) {
			dst = append(dst, i)
		}
	}

	return dst
}
// Find creates a slice with all indices corresponding to elements for which f(x) is true.
// Find uses dst as work buffer, storing indices at the start of the slice.
// Find clears dst if a slice is passed, and allocates a new slice if dst is nil.
Find creates a slice with all indices corresponding to elements for which f(x) is true.
Find uses dst as work buffer, storing indices at the start of the slice.
Find clears dst if a slice is passed, and allocates a new slice if dst is nil.
// Find creates a slice with all indices corresponding to elements for which f ( x ) is true . // Find uses dst as work buffer storing indices at the start of the slice . // Find clears dst if a slice is passed and allocates a new slice if dst is nil .
func Find(dst []int, src []float64, f func(v float64) bool) []int {
	if dst == nil {
		dst = make([]int, 0, len(src))
	}
	dst = dst[:0]
	for i, x := range src {
		if f(x) {
			dst = append(dst, i)
		}
	}
	return dst
}
func Find ( dst [ ] int , src [ ] float64 , f func ( v float64 ) bool ) [ ] int { if dst == nil { dst = make ( [ ] int , 0 , len ( src ) ) } dst = dst [ : 0 ] for i , x := range src { if f ( x ) { dst = append ( dst , i ) } } return dst }
Find creates a slice with all indices corresponding to elements for which f(x) is true.
Find creates a slice with all indices corresponding to elements for which f ( x ) is true .