Hopefully fixes coeval

This commit is contained in:
Sloom Sloum Sluom IV 2024-06-11 22:40:34 -07:00
parent 0f677d5b1a
commit 8cdaf8c3fc
3 changed files with 2 additions and 13 deletions

13
lib.go
View File

@ -3519,21 +3519,10 @@ var stdLibrary = vars{
wg.Add(len(a))
for i := range a {
input := a[i].([]expression)
var list []expression
if len(input) == 1 {
list = make([]expression, 0)
} else {
switch item := input[1].(type) {
case []expression:
list = item
default:
list = []expression{item}
}
}
go func(w *sync.WaitGroup, p expression, args []expression, name expression) {
defer w.Done()
apply(p, args, name)
}(wg, input[0], list, fmt.Sprintf("Coeval procedure argument %d", i))
}(wg, input[0], input[1:], fmt.Sprintf("Coeval procedure argument %d", i))
}
wg.Wait()
return make([]expression, 0)

View File

@ -19,7 +19,7 @@ import (
"golang.design/x/clipboard"
)
const version = "1.2.14"
const version = "1.2.15"
const globalLibPath = "/usr/local/lib/slope/modules/"

Binary file not shown.