Skip to main content

function

all

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

Checks if all elements in the list are truthy.

Parameters:

  • T (BoolableCollectionElement): The type of elements to check.

Args:

  • list (List[T]): 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.