iterlen#

pybrops.core.util.iterator.iterlen(i)[source]#

Get the length of an iterator without destroying the iterator.

Parameters:

i (Iterator) – Iterator for which to get the length.

Returns:

out – Length of the itertor.

Return type:

int