aioplus.aany

async aioplus.aany(aiterable, /)

Return True if any items of aiterable evaluate to True.

Parameters:

aiterable (AsyncIterable[SupportsBool]) – Iterable.

Returns:

True if any item evaluates to True, otherwise False.

Return type:

bool

Examples

>>> aiterable = arange(23)
>>> await aany(aiterable)
True

Notes

  • If aiterable is empty, then False is returned.

See also

any()