concatImmutable method
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;
}