func SetInt(list []int) []int {
	if list == nil || len(list) == 0 {
		return []int{}
	}
	resultMap := make(map[int]struct{})
	newList := []int{}
	for i := 0; i < len(list); i++ {
		_, ok := resultMap[list[i]]
		if !ok {
			resultMap[list[i]] = struct{}{}
			newList = append(newList, list[i])
		}
	}
	return newList
}
SetInt returns a set of the distinct elements of coll.
package fp