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

feat: add methods to allow in-place replacement of values in queues and lists #975

Merged
merged 2 commits into from Aug 30, 2021

Conversation

johnnylam88
Copy link
Contributor

No description provided.

Add a `replaceAt(index, value)` method to `Deque` and `List`
classes to replace a value at a specified index into the sequence.
This method does not affect the queue or list structure and only
replaces an existing value with a new one.
Add a `replace(value)` method to iterators for the `Deque` and
`List` classes to replace a value at the current iterator state.
@Sidoine Sidoine merged commit 0597336 into Sidoine:master Aug 30, 2021
@johnnylam88 johnnylam88 deleted the feat/adt-replace branch August 30, 2021 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants