增加in函数的简化写法
This commit is contained in:
parent
8aee2fb907
commit
662152cb68
9
array.go
9
array.go
@ -67,3 +67,12 @@ func (a *array) In(search interface{}, source interface{}) int {
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
// InAny In 函数的简化写法
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:25 2023/3/30
|
||||
func (a *array) InAny(search interface{}, source ...interface{}) int {
|
||||
return a.In(search, source)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user