SkipList<T> constructor
SkipList<T> (
- Comparator<
T> _compare, { - Random? random,
Creates an empty set ordered by compare. Pass random (seeded) for
deterministic level promotion; defaults to a fresh Random.
Audited: 2026-06-12 11:26 EDT
Implementation
SkipList(this._compare, {Random? random}) : _random = random ?? Random();