Home
Sign Up
Sign In
V2EX
›
问与答
golang 的 slice 没有 contains, indexOf 这两个函数吗?
ahmcsxcc
·
Jul 23, 2019
· 3552 views
This topic created in 2665 days ago, the information mentioned may be changed or developed.
indexOf
Golang
slice
contains
4 replies
•
2019-07-24 10:03:33 +08:00
SuperMild
Jul 23, 2019
1
slice 本身没有任何函数或方法。
ahmcsxcc
OP
Jul 23, 2019
2
@
SuperMild
#1
类似 strings 这种
wspsxing
Jul 23, 2019 via Android
3
大道至简,请自己实现
ahmcsxcc
OP
Jul 24, 2019
4
@
wspsxing
#3
我代码写的很烂
自己实现的性能很差
说不定就内存泄漏了
时间,空间复杂度肯定没有官方写的好
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
561 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms ·
UTC 19:24
·
PVG 03:24
·
LAX 11:24
·
JFK 14:24
♥ Do have faith in what you're doing.
❯