-
Notifications
You must be signed in to change notification settings - Fork 18
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
Implementing insert_before
method
#23
Comments
Hi! 👋 I don't think there's a way to do this without a PR, but yeah I think I'm willing to accept one. Designing the right API for it is a little tricky, you could provide a simplistic |
Great, thank you for your swift response!
I agree, this solution seems pretty ad hoc, particularly for a project of this scope. While I can't propose a superior API right now, but I'm interested in further researching to identify a more efficient approach. Given the rarity of my use case, it might not be widely applicable. Thus, integrating it with I'll focus on |
G'Day @kyren 👋 I've been experimenting with The difference for the - /// Returns the cursor position index within the `LinkedList`.
- pub fn index(&self) -> Option<usize>;
+ /// Returns the cursor position key within the `LinkedHashMap`.
+ pub fn key(&self) -> Option<K>; Would the implementations for Considering the complexity of this implementation, it's currently beyond my capacity. I'm also unsure if it's necessary, as I haven't noticed a consistent demand for this feature. Can you confirm if my understanding is correct? I'm ready to create a plan, divide it into achievable tasks, and focus on the core components. Once I reach my initial goal, I'll hand it over to anyone interested in continuing the work. I'd appreciate your thoughts on this. |
Closed by #25 |
Hi there 👋
I've encountered a need to insert a key/value pair before a specific node in the underlying linked list. Currently, there's no available API to achieve this. I considered extending the functionality myself; however, the required
attach_before
anddetach_node
functions are private, making them inaccessible.Is there an alternative method to accomplish this without altering the crate, if there is no an alternative, would you be open to accepting a PR that implements this method?
Best regards,
Oleg
The text was updated successfully, but these errors were encountered: