-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(cordyceps): added new push_back and pop_front methods to list #198
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR! i have a couple of very minor suggestions:
- the RustDoc for the
List
type references using the list as a FIFO usingpush_front
andpop_back
, it would be nice to add something saying that it can also be used as a stack or double-ended queue using these methods - thanks for adding tests! it could be good to add these methods to the
proptest
fuzz_linked_list
test as well, but if that's too much work, it would be fine to do that in a follow-up branch.
thanks again for the PR!
…test. updated documentation to clarify the List can now be used as a stack or Doubly-Linked List
Edit: Committed these changes on my other account but it's still me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great, i'm going to merge it once CI has run! thanks again!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great to me, i'm going to merge as soon as CI is done. thanks again!
oh, looks like mind fixing that? thanks! |
Head branch was pushed to by a user without write access
Done! |
This PR adds some nice-to-have methods as detailed in this issue.
Changes:
push_back
methodpop_front
methodSmall change but hope it's good :D