mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-17 19:22:28 +08:00
fix: fix
Intersection slice issue
This commit is contained in:
@@ -474,7 +474,7 @@ func Intersection(slices ...interface{}) interface{} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
res := Reduce(slices, reduceFunc, nil)
|
res := Reduce(slices, reduceFunc, nil)
|
||||||
return Union(res)
|
return Unique(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReverseSlice return slice of element order is reversed to the given slice
|
// ReverseSlice return slice of element order is reversed to the given slice
|
||||||
|
|||||||
Reference in New Issue
Block a user