deep list inclusion and item membership implemented

This commit is contained in:
2024-05-29 13:03:58 +02:00
parent 4b25a07699
commit d84e690ef3
4 changed files with 68 additions and 36 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func evalIn(ctx ExprContext, self *term) (v any, err error) {
if IsList(rightValue) {
list, _ := rightValue.(*ListType)
v = list.indexDeepCmp(leftValue) >= 0
v = list.indexDeepSameCmp(leftValue) >= 0
} else if IsDict(rightValue) {
dict, _ := rightValue.(*DictType)
v = dict.hasKey(leftValue)