IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

all

all[IterableType: Iterable](iterable: IterableType) -> Bool where conforms_to(IterableType.IteratorType[False, iterable, origin_of(iterable)].Element, AnyType & ImplicitlyDestructible & Boolable)

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) -> 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.