isSubsetOf

isSubsetOf, function

def const dash pure isSubsetOf(setA: long, setB: long): boolean

Returns true if setA is a subset of setB.

Examples

ABC = union(flag(1), union(flag(2), flag(3)))
BC = union(flag(2), flag(3))

show table "Subset" with
  isSubsetOf(BC, ABC) as "Result"

This produces the following table:

Result
true

See also

User Contributed Notes
0 notes + add a note