Skip to main content
Log in

Mojo function

all

all[T: BoolableCollectionElement](list: List[T, hint_trivial_type]) -> Bool

Checks if all elements in the list are truthy.

Parameters:

  • T (BoolableCollectionElement): 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: BoolableKeyElement](set: Set[T]) -> Bool

Checks if all elements in the set are truthy.

Parameters:

  • T (BoolableKeyElement): 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[type, size]) -> Bool

Checks if all elements in the simd vector are truthy.

Args:

  • value (SIMD[type, size]): The simd vector to check.

Returns:

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