Mojo function
all
all[T: Boolable & Copyable & Movable, //](list: List[T, hint_trivial_type]) -> Bool
Checks if all elements in the list are truthy.
Parameters:
- T (
Boolable & Copyable & Movable
): The type of elements to check.
Args:
- list (
List[T, hint_trivial_type]
): The list to check.
Returns:
True
if all elements in the list are truthy, False
otherwise.
all[T: Boolable & KeyElement, //](set: Set[T]) -> Bool
Checks if all elements in the set are truthy.
Parameters:
- T (
Boolable & KeyElement
): The type of elements to check.
Args:
- set (
Set[T]
): The set to check.
Returns:
True
if all elements in the set are truthy, False
otherwise.
all(value: SIMD[dtype, size]) -> Bool
Checks if all elements in the simd vector are truthy.
Args:
- value (
SIMD[dtype, size]
): The simd vector to check.
Returns:
True
if all elements in the simd vector are truthy, False
otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!