src/cplib/collections/rangeset

  Source   Edit

Types

RangeSet[T] = ref object
  st*: AvlSortedMultiSet[(int, int, T)]
  default*: T
  Source   Edit

Procs

proc get_segment[T](self: RangeSet[T]; x: int): (int, int, int)
  Source   Edit
proc initRangeSet[T](default: T): RangeSet[T]
  Source   Edit
proc update[T](self: RangeSet[T]; l, r: int; value: T)
  Source   Edit