Getting python's itertools cycle current element
Iterators/generators don't have any way to get the current value. You should either keep a reference to it or create some wrapper that holds onto it for you.
Iterators/generators don't have any way to get the current value. You should either keep a reference to it or create some wrapper that holds onto it for you.