array-iterator.go: changed 'list' name component with 'array'

This commit is contained in:
2026-08-02 16:44:26 +02:00
parent e2b0a43640
commit 7e4baf9b6e
5 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ func evalIterator(ctx kern.ExprContext, opTerm *scan.Term) (v any, err error) {
} else if a, ok := firstChildValue.(*array.ArrayType); ok {
var args []any
if args, err = evalSiblings(ctx, opTerm.Children, nil); err == nil {
v = NewListIterator(a, args)
v = NewArrayIteratorFromArray(a, args)
}
} else if ll, ok := firstChildValue.(*list.LinkedList); ok {
var args []any