From ec983b7aa6abfbad1ad3ce480153d314df8e3388 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Tue, 28 Dec 2021 10:16:53 +0800 Subject: [PATCH] fix: fix Intersection slice issue --- slice/slice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slice/slice.go b/slice/slice.go index 321efea..388ee20 100644 --- a/slice/slice.go +++ b/slice/slice.go @@ -474,7 +474,7 @@ func Intersection(slices ...interface{}) interface{} { } res := Reduce(slices, reduceFunc, nil) - return Union(res) + return Unique(res) } // ReverseSlice return slice of element order is reversed to the given slice