mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
ubuiltins: Document next.
This commit is contained in:
@@ -711,6 +711,9 @@ def map(function: Callable, iterable: Iterable, *args: Any) -> Iterator:
|
||||
iterable (iter): One or more source interables from which to draw data.
|
||||
With multiple iterables, the iterator stops when the shortest
|
||||
iterable is exhausted.
|
||||
|
||||
Returns:
|
||||
The new, mapped iterator.
|
||||
"""
|
||||
|
||||
|
||||
@@ -748,7 +751,16 @@ def min(*args):
|
||||
|
||||
def next(iterator: Iterator) -> Any:
|
||||
"""
|
||||
next(iterator) -> Any
|
||||
|
||||
Retrieves the next item from the iterator by calling its ``__next__()`` method.
|
||||
|
||||
Arguments:
|
||||
iterator (iter): Initialized generator object from which to draw the next
|
||||
value.
|
||||
|
||||
Returns:
|
||||
The next value from the generator.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user