This commit is contained in:
a 2022-03-26 20:19:04 -05:00
parent 117fe3a563
commit 0df83bbddb
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ func MapV[T, V any](xs []T, fx func(T) V) []V {
tmp := make([][]V, len(spl)) tmp := make([][]V, len(spl))
for i, v := range spl { for i, v := range spl {
go func(ix int, vx []T) { go func(ix int, vx []T) {
spl[ix] = lambda.MapV(vx, fx) tmp[ix] = lambda.MapV(vx, fx)
wg.Done() wg.Done()
}(i, v) }(i, v)
} }