mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
Merge branch 'master' of github.com:samber/lo
This commit is contained in:
@@ -116,6 +116,7 @@ func PartitionBy[T any, K comparable](collection []T, iteratee func (x T) K) [][
|
||||
|
||||
for _, item := range collection {
|
||||
go func(_item T) {
|
||||
defer wg.Done()
|
||||
key := iteratee(_item)
|
||||
|
||||
mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user