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 __len__ and __iter__ methods #20

Closed
Adamtaranto opened this issue Sep 10, 2024 · 0 comments · Fixed by #27
Closed

Add __len__ and __iter__ methods #20

Adamtaranto opened this issue Sep 10, 2024 · 0 comments · Fixed by #27
Assignees
Labels
enhancement New feature or request

Comments

@Adamtaranto
Copy link
Collaborator

Adamtaranto commented Sep 10, 2024

Add __len__ dunder method to return total number of keys in hash table when Python function len() is called on a KmerHashTable object.

Add __iter__ method to yield hash,count pairs.

@Adamtaranto Adamtaranto added the enhancement New feature or request label Sep 10, 2024
@Adamtaranto Adamtaranto self-assigned this Sep 10, 2024
@Adamtaranto Adamtaranto changed the title Add __len__ method Add __len__ and __iter__ methods Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant