Update countDistinct doc
commit7100d5d7af64d4e1cb6f99bbf823dc7cf6e2397c
authorHarendra Kumar <harendra@composewell.com>
dateThu 24 Mar 2022, 17:50 (5 years ago)
parentfe27494
core/src/Streamly/Internal/Data/Fold.hs+2
@@ -570,6 +570,8 @@ length = genericLength
570570
571571-- | Count non-duplicate elements in the stream.
572572--
573+-- Equivalent to using 'nub' followed by 'length' on a stream.
574+--
573575-- The memory used is proportional to the number of distinct elements in the
574576-- stream, to guard against using too much memory use it as a scan and
575577-- terminate if the count reaches more than a threshold.