KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Suppose I have an arbitrary iterable - for example, a generator that iterates over lines of a file and yield s the ones matching a regex. How can I count the number of items in that iterable, supposing that I don't care about the elements themselves?
Tags (comma-separated)
Save Edits
Cancel