3 ms·
A while ago, I implemented ropes based on the 1995 paper by Boehm et al in JavaScript. The interface provides methods charAt, charCodeAt, concat and substring,
by rav 13y ago
A while ago, I implemented ropes based on the 1995 paper by Boehm et al in JavaScript. The interface provides methods charAt, charCodeAt, concat and substring, so it functions as a drop-in replacement for JavaScript strings (provided you limit your use to the given supported methods).
https://github.com/Mortal/ropejs/blob/master/rope.js https://github.com/Mortal/ropejs/blob/master/rope.js