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!