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

Commits on Aug 17, 2021

  1. feat: add replaceAt() method to queue and list classes

    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.
    johnnylam88 committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    69dd052 View commit details
    Browse the repository at this point in the history
  2. feat: add replace() method to iterators

    Add a `replace(value)` method to iterators for the `Deque` and
    `List` classes to replace a value at the current iterator state.
    johnnylam88 committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    2505a6b View commit details
    Browse the repository at this point in the history