public string getRange(Range r) { int size = sb.Length; int s = r.start(size); int e = r.end(size); if (e+1 < s) throw IndexErr.make(r).val; return sb.ToString().Substring(s, (e-s)+1); }