Some data-type check functions (e.g. IsInteger()) exported

This commit is contained in:
2024-05-08 07:53:01 +02:00
parent b2b0bb04c5
commit 8ee0bb5701
13 changed files with 44 additions and 44 deletions
+2 -2
View File
@@ -23,10 +23,10 @@ func evalLength(ctx ExprContext, self *term) (v any, err error) {
return
}
if isList(childValue) {
if IsList(childValue) {
list, _ := childValue.([]any)
v = int64(len(list))
} else if isString(childValue) {
} else if IsString(childValue) {
s, _ := childValue.(string)
v = int64(len(s))
} else if it, ok := childValue.(Iterator); ok {