1 Star 0 Fork 4

王布衣/num

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
find.go 193 Bytes
Copy Edit Raw Blame History
王布衣 authored 2024-02-12 09:23 . 调整package
package functions
import "gitee.com/quant1x/num/internal/constraints"
func Find_Go[T constraints.Float](x []T, a T) int {
for i, v := range x {
if v == a {
return i
}
}
return -1
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/quant1x/num.git
git@gitee.com:quant1x/num.git
quant1x
num
num
v0.2.6

Search