SkipList<T> constructor

SkipList<T>(
  1. Comparator<T> _compare, {
  2. 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();