aioplus.aany¶
- async aioplus.aany(aiterable, /)¶
Return
Trueif any element of the async iterable evaluates toTrue.- Parameters:
aiterable (AsyncIterable of SupportsBool) – An asynchronous iterable of objects supporting
object.__bool__().- Returns:
Trueif any element evaluates toTrue.Falseif all elements evaluate toFalse, or if the iterable is empty.- Return type:
Examples
>>> aiterable = arange(23) >>> await aany(aiterable) True
Notes
Short-circuits on the first object that evaluates to
True.
See also