Pergi hitung elemen berbeda dalam daftar
distinct := make(map[T]bool)
for _, v := range items {
distinct[v] = true
}
cnt := len(distinct)
Mackerel
distinct := make(map[T]bool)
for _, v := range items {
distinct[v] = true
}
cnt := len(distinct)