aioplus.aall

async aioplus.aall(aiterable, /)

Return True if all items of aiterable evaluate to True.

Parameters:

aiterable (AsyncIterable[SupportsBool]) – Iterable.

Returns:

True if all items evaluate to True, otherwise False.

Return type:

bool

Examples

>>> aiterable = arange(23)
>>> await aall(aiterable)
False

Notes

  • If aiterable is empty, then True is returned.

See also

all()