1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-17 19:22:28 +08:00
Intersection slice issue
This commit is contained in:
dudaodong
2021-12-28 10:16:53 +08:00
parent 56fc2aabd6
commit ec983b7aa6

View File

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