1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00

update comment for Count func

This commit is contained in:
dudaodong
2022-01-09 22:17:50 +08:00
parent b0e9758e0d
commit 681d5b6bdf
2 changed files with 2 additions and 2 deletions

View File

@@ -421,7 +421,7 @@ func Union(slices ...interface{}) interface{} //slice并集, 去重
func UpdateByIndex(slice interface{}, index int, value interface{}) (interface{}, error) //在切片中index位置更新value
func Without(slice interface{}, values ...interface{}) interface{} //slice去除values
func GroupBy(slice, function interface{}) (interface{}, interface{}) //根据函数function的逻辑分slice为两组slice
Count[T any](slice []T, fn func(index int, t T) bool) int
func Count[T any](slice []T, fn func(index int, t T) bool) int //遍历slice的元素返回所有匹配元素的计数
```
#### 10. strutil字符串处理包