add readUntil

This commit is contained in:
2023-06-29 00:57:52 +01:00
parent 9649c33217
commit af934e0429
18 changed files with 302 additions and 103 deletions

View File

@@ -1,6 +1,8 @@
package main
import "fmt"
import (
"fmt"
)
type keyCache map[any]any
@@ -71,8 +73,8 @@ func compare(a, b any) (bool, error) {
if y, ok := x.obj["__LessThan__"]; ok {
resp, err := runCall(
call{
callable: y,
args: []any{b},
Callable: y,
Args: []any{b},
}, stack{}, 0)
if !err.EXISTS {
return anyToBool(resp), nil