I like to compare set predicates (with different underlying scalar types) to determine if they are exact the same (= same number of elements and no element is in one set only). I used the standard equals function eq(type.setpredicate, [1, 2, 3])
, but this would also be true if type.setpredicate
holds [1,2]. In case of a string-set i can work around using allofterms and a count, but that doesn’t seem like a solution and only works with strings.
1 Like