The name of 'list' has been changed to 'array'; from now on, 'list' will refer to the linked list.

This commit is contained in:
2026-07-12 07:35:28 +02:00
parent b6da9bcad4
commit 77f36642b4
37 changed files with 180 additions and 196 deletions
+2 -2
View File
@@ -93,7 +93,7 @@ func divValues(opTerm *scan.Term, leftValue, rightValue any) (v any, err error)
} else if str.IsString(leftValue) && str.IsString(rightValue) {
source := leftValue.(string)
sep := rightValue.(string)
v = array.ListFromStrings(strings.Split(source, sep))
v = array.ArrayFromStrings(strings.Split(source, sep))
} else if str.IsString(leftValue) && types.IsInteger(rightValue) {
source := leftValue.(string)
partSize := int(rightValue.(int64))
@@ -113,7 +113,7 @@ func divValues(opTerm *scan.Term, leftValue, rightValue any) (v any, err error)
if remainder > 0 {
parts = append(parts, source[len(source)-remainder:])
}
v = array.NewList(parts)
v = array.NewArray(parts)
}
} else {
err = opTerm.ErrIncompatibleTypes(leftValue, rightValue)