3 // Copyright 2020 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.
9 type Float64Slice []float64
11 func (a Float64Slice) Search1(x float64) int {
12 f := func(q int) bool { return a[q] >= x }