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:
@@ -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