whole_func_string: function(x, left, right) {
    if (x < left) {
      return left - x;
    } else if (x > right) {
      return x - right;
    } else {
      return 0;
    }
  }
func_code_string: function(x, left, right) {
    if (x < left) {
      return left - x;
    } else if (x > right) {
      return x - right;
    } else {
      return 0;
    }
  }
func_documentation_string: Determine the distance from x to [left, right].