Skip to main content

Mojo function

all

all[IterableType: Iterable](iterable: IterableType) -> Bool

Checks if all elements in the list are truthy.

Parameters:

  • โ€‹IterableType (Iterable): The type of the iterable containing Boolable items.

Args:

  • โ€‹iterable (IterableType): The iterable to check.

Returns:

Bool: True if all elements in the iterable are truthy, False otherwise.

all(value: SIMD[dtype, size]) -> Bool

Checks if all elements in the simd vector are truthy.

Args:

  • โ€‹value (SIMD): The simd vector to check.

Returns:

Bool: True if all elements in the simd vector are truthy, False otherwise.

Was this page helpful?