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

list.findIndex() #448

Merged
merged 1 commit into from
Oct 5, 2021
Merged

list.findIndex() #448

merged 1 commit into from
Oct 5, 2021

Conversation

Jason2605
Copy link
Member

Well detailed description of the change :

This PR adds a new method to lists, list.findIndex(). It works almost exactly the same as the current list.find() except that instead of returning the value from within the list it returns the index at which the item was found within the list.

This PR also extends list.find() to have 2 new optional parameters, start and end, which allow us to restrict the items we are searching through the list.

Type of change :

  • New feature

@Jason2605 Jason2605 added the enhancement Implementation of a new feature label Oct 3, 2021
@Jason2605 Jason2605 self-assigned this Oct 3, 2021
@Jason2605 Jason2605 merged commit b0165c4 into develop Oct 5, 2021
@Jason2605 Jason2605 deleted the feature/list_find_index branch October 5, 2021 20:50
@Jason2605 Jason2605 mentioned this pull request Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Implementation of a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant