1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

refactor: rename ReverseIntersect to SymmetricDifference

This commit is contained in:
dudaodong
2022-04-01 18:05:02 +08:00
parent 21dd6ab8aa
commit 3c16d50c4b
2 changed files with 7 additions and 7 deletions

View File

@@ -602,8 +602,8 @@ func Intersection[T any](slices ...[]T) []T {
return Unique(res)
}
// ReverseIntersect reverse operation of Intersection function
func ReverseIntersect[T any](slices ...[]T) []T {
// SymmetricDifference oppoiste operation of intersection function
func SymmetricDifference[T any](slices ...[]T) []T {
if len(slices) == 0 {
return []T{}
}