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