Mojo module
iter
Traits
- Iterable: TheIteratortrait describes a type that can be turned into an iterator.
- Iterator: TheIteratortrait describes a type that can be used as an iterator, e.g. in aforloop.
Functions
- enumerate: Theenumeratefunction returns an iterator that yields tuples of the index and the element of the original iterator.
- iter:
- map: Returns an iterator appliesfuncto each element of the input iterable.
- next:
- zip: Returns an iterator that yields tuples of the elements of the original iterables.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
