vá contar elementos distintos na lista
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)