wrf.get_iterable¶
-
wrf.get_iterable(wrfseq)¶ Returns a resettable iterable object.
In this context, resettable means that when
object.__iter__()is called, the iterable returned always points to the first element in the sequence, similar to how the list and tuple behave.Parameters: wrfseq (iterable) – An iterable type, which includes lists, tuples, dictionaries, generators, and user-defined classes. Returns: A resettable iterator object. Return type: iterable