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

add .find() method #122

Merged
merged 11 commits into from
May 4, 2021
Merged

add .find() method #122

merged 11 commits into from
May 4, 2021

Conversation

ilanschnell
Copy link
Owner

@ilanschnell ilanschnell commented Apr 25, 2021

This PR adds the .find() method to bitarray objects, which is almost identical to .index() (except that when the item is not found it returns -1, instead of raising ValueError).

Also, .find(), .index(), .search() and .itersearch() now all except both (sub-) bitarray as well as bool items to be searched for.

@ilanschnell ilanschnell merged commit c48b2e7 into master May 4, 2021
@ilanschnell ilanschnell deleted the find branch May 9, 2021 23:42
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.

1 participant