Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 386 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 386 Bytes

Probabilistic Linear Counting for Dlang

auto counter = LPCounter(32); // 32 kilobytes for internal BitArray

/// loop
  counter.put(anArrayOrString);
  // or
  //counter.put(anUint);
  //counter.put(anUlong); // not that the 3 and 3L is different entities!
  //counter.put(anUUID);

size_t count = counter.count;

Licence:

www.boost.org/LICENSE_1_0.txt, Boost License 1.0