Mojo function
any
any[T: BoolableCollectionElement](list: List[T, hint_trivial_type]) -> Bool
Checks if any element in the list is truthy.
Parameters:
- βT (
BoolableCollectionElement
): The type of elements to check.
Args:
- βlist (
List[T, hint_trivial_type]
): The list to check.
Returns:
True
if any element in the list is truthy, False
otherwise.
any[T: BoolableKeyElement](set: Set[T]) -> Bool
Checks if any element in the set is truthy.
Parameters:
- βT (
BoolableKeyElement
): The type of elements to check.
Args:
- βset (
Set[T]
): The set to check.
Returns:
True
if any element in the set is truthy, False
otherwise.
any(value: SIMD[type, size]) -> Bool
Checks if any element in the simd vector is truthy.
Args:
- βvalue (
SIMD[type, size]
): The simd vector to check.
Returns:
True
if any element in the simd vector is truthy, False
otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?