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
+3 -3
View File
@@ -15,7 +15,7 @@ import (
)
type ListIterator struct {
a *array.ListType
a *array.ArrayType
count int64
index int64
start int64
@@ -23,7 +23,7 @@ type ListIterator struct {
step int64
}
func NewListIterator(list *array.ListType, args []any) (it *ListIterator) {
func NewListIterator(list *array.ArrayType, args []any) (it *ListIterator) {
var argc int = 0
listLen := int64(len(([]any)(*list)))
if args != nil {
@@ -63,7 +63,7 @@ func NewListIterator(list *array.ListType, args []any) (it *ListIterator) {
}
func NewArrayIterator(a []any) (it *ListIterator) {
it = &ListIterator{a: (*array.ListType)(&a), count: 0, index: -1, start: 0, stop: int64(len(a)) - 1, step: 1}
it = &ListIterator{a: (*array.ArrayType)(&a), count: 0, index: -1, start: 0, stop: int64(len(a)) - 1, step: 1}
return
}