mdtraj.utils.ilen

mdtraj.utils.ilen(iterable)

Length of an iterator. Note, this consumes the iterator

Parameters
iterableiterable

An iterable, such as a generator, list, etc.

Returns
lengthint

The number of elements in the iterable