docs: def distance_to(self, other):
          """
          Returns the size of the gap between intervals, or 0 
          if they touch or overlap.
          :param other: Interval or point
          :return: distance
          :rtype: Number
          """
          if self.overlaps(other):
              return 0
          try:
              if self.begin < other.begin:
                  return other.begin - self.end
              else:
                  return self.begin - other.end
          except:
              if self.end <= other:
                  return other - self.end
              else:
                  return self.begin - other