Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support double linked list as a shared data type #607

Open
leegean opened this issue Jan 25, 2024 — with Huly GitHub · 1 comment
Open

support double linked list as a shared data type #607

leegean opened this issue Jan 25, 2024 — with Huly GitHub · 1 comment
Assignees

Comments

Copy link

leegean commented Jan 25, 2024

As we all know, arrays and doubly linked lists have their advantages and disadvantages. I hope yjs can support double linked list as a shared data type, thanks.

Huly®: YJS-409

@dmonad
Copy link
Member

dmonad commented Apr 14, 2024

Internally, YArray is already a linked list. If you want, you could propose an API to access specific features of a linked list (e.g. a cursor that can be used to iterate through the internal linked list and can be used to insert content). Please make sure to define a specific use-case that the current API can't handle well.

This might be a cool feature. However, exposing a linked-list API is not a priority for me. So I'm not sure when I'm gonna tackle it.

I'm gonna close this ticket because I can't tackle it as-is.

@dmonad dmonad closed this as completed Apr 14, 2024
@huly-github huly-github bot reopened this Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants