concatImmutable method

Rope concatImmutable(
  1. Rope other
)

Appends other leaf by leaf. Never materialises either document.

Implementation

Rope concatImmutable(Rope other) {
  final result = copy();
  other._root.forEachLeaf((leaf) => result.insert(result.length, leaf));
  return result;
}