2022-12-13
#go
#code-snippet
Slice 取交集和差集的通用方法
交集 // GetIntersection intersection = a & b func GetIntersection[T comparable](a []T, b []T) []T { s