/// <summary> /// Appends another rope to the end of this rope. /// Runs in O(lg N + lg M), plus a per-node cost as if <c>newElements.Clone()</c> was called. /// </summary> /// <exception cref="ArgumentNullException">newElements is null.</exception> public void AddRange(Rope<T> newElements) { InsertRange(Length, newElements); }
/// <summary> /// Appends text to this rope. /// Runs in O(lg N + M). /// </summary> /// <exception cref="ArgumentNullException">newElements is null.</exception> public static void AddText(this Rope <char> rope, string text) { InsertText(rope, rope.Length, text); }