Skip to main content

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:

Args:

  • list (List): The list to check.

Returns:

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

all[T: Boolable & Copyable & Movable & Hashable & EqualityComparable, //](set: Set[T]) -> Bool

Checks if all elements in the set are truthy.

Parameters:

Args:

  • set (Set): The set to check.

Returns:

Bool: 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): The simd vector to check.

Returns:

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

Was this page helpful?