refactored data-types to reduce plugin sizes
This commit is contained in:
@@ -10,16 +10,17 @@ import (
|
||||
"slices"
|
||||
|
||||
"git.portale-stac.it/go-pkg/expr/kern"
|
||||
"git.portale-stac.it/go-pkg/expr/types/list"
|
||||
)
|
||||
|
||||
type LinkedListIterator struct {
|
||||
a *kern.LinkedList
|
||||
a *list.LinkedList
|
||||
count int64
|
||||
index int64
|
||||
current *kern.ListNode
|
||||
current *list.ListNode
|
||||
}
|
||||
|
||||
func NewLinkedListIterator(list *kern.LinkedList, args []any) (it *LinkedListIterator) {
|
||||
func NewLinkedListIterator(list *list.LinkedList, args []any) (it *LinkedListIterator) {
|
||||
it = &LinkedListIterator{a: list, count: 0, index: -1, current: list.FirstNode()}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user