Size returns the number of elements in the SkipList.
()
| 472 | |
| 473 | // Size returns the number of elements in the SkipList. |
| 474 | func (sl *SkipList) Size() int { |
| 475 | return int(sl.length) |
| 476 | } |
| 477 | |
| 478 | // PeekMin returns the element with minimum score, nil if the set is empty. |
| 479 | // |