// a + b func scpUnion(a, b []int) []int { sa := setFromIntSlice(a) sb := setFromIntSlice(b) sc := set.Union(sa, sb) c := set.IntSlice(sc) orderScp(c) return c }
// ab func scpIntsc(a, b []int) []int { sa := setFromIntSlice(a) sb := setFromIntSlice(b) sc := set.Intersection(sa, sb) c := set.IntSlice(sc) orderScp(c) return c }
// a\b func scpDiff(a, b []int) []int { sa := setFromIntSlice(a) sb := setFromIntSlice(b) sc := set.Difference(sa, sb) c := set.IntSlice(sc) orderScp(c) return c }