underestimateCount

func underestimateCount<T : SequenceType>(_: T)

Return an underestimate of the number of elements in the given sequence, without consuming the sequence. For Sequences that are actually Collections, this will return count(x)

Declaration

func underestimateCount<T : SequenceType>(x: T) -> Int