Skip to content

approx_distinct

In std/collections.

reduction fn approx_distinct<T>(self: Collection<T>) : Int

An estimate of the number of distinct occurrences, size(Set(xs)); 0 over []. The estimate is deterministic: the same input gives the same result.