Is it really true that there's no way to get the current value from #Python's itertools.count()? All I can do is advance it and get the next value? The repr() shows the value, but I can't get an int?

Follow

@nedbat Do any of the itertools iterators expose stuff like that? My impression was that these things are supposed to be composed into pipelines in a sort of functional programming style, so the details of which one is the outermost container would be irrelevant and maybe bad practice to rely on.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.