Rope
This is essentially an immutable String
except many operations that would be with normal strings are instead or
Rope
s will be slower and take more memory than small String
s but they have an asymptotic advantage when working with large documents.