mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
refactor: rename ReverseIntersect to SymmetricDifference
This commit is contained in:
1 parent
21dd6ab8aa
commit
3c16d50c4b
2 files changed
+7
-7
No files matched your search
+2
-2
@@ -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{}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user