The name of 'list' has been changed to 'array'; from now on, 'list' will refer to the linked list.
This commit is contained in:
+2
-2
@@ -120,8 +120,8 @@ func lessThan(self *scan.Term, a, b any) (isLess bool, err error) {
|
||||
isLess = ls < rs
|
||||
// Inclusion test
|
||||
} else if array.IsList(a) && array.IsList(b) {
|
||||
aList, _ := a.(*array.ListType)
|
||||
bList, _ := b.(*array.ListType)
|
||||
aList, _ := a.(*array.ArrayType)
|
||||
bList, _ := b.(*array.ArrayType)
|
||||
isLess = len(*aList) < len(*bList) && bList.Contains(aList)
|
||||
} else {
|
||||
err = self.ErrIncompatibleTypes(a, b)
|
||||
|
||||
Reference in New Issue
Block a user