fix mapv
This commit is contained in:
parent
117fe3a563
commit
0df83bbddb
|
@ -27,7 +27,7 @@ func MapV[T, V any](xs []T, fx func(T) V) []V {
|
|||
tmp := make([][]V, len(spl))
|
||||
for i, v := range spl {
|
||||
go func(ix int, vx []T) {
|
||||
spl[ix] = lambda.MapV(vx, fx)
|
||||
tmp[ix] = lambda.MapV(vx, fx)
|
||||
wg.Done()
|
||||
}(i, v)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue