Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
progval
on July 22, 2022
|
parent
|
context
|
favorite
| on:
Ask HN: What are some cool but obscure data struct...
Ropes do this too; each node is labeled the size of its subtree. If you want to compute line numbers as well, add them as another label
kragen
on July 22, 2022
[–]
That kind of thing is a common extension to ropes, because it makes them indexable containers like arrays, but it is not inherent to the definition of ropes. I don't think it's mentioned in the original Cedar rope paper.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: