1-4 Array Set 集合运算相关方法

141 阅读1分钟

1-4 Array Set 集合运算相关方法

Sets 集合运算

  • d3.union - compute a set union.求并集
  • d3.difference - compute a set difference.求差集
  • d3.intersection - compute a set intersection.求交集
  • d3.superset - test whether a set is a superset of another.求一个集合是否是令一个集合的超集
  • d3.subset - test whether a set is a subset of another.求一个集合是否是令一个集合的子集
  • d3.disjoint - test whether two sets are disjoint.求两个集合是否不相交(没有交集)