Skip to main content
Version: 1.0

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[value.dtype, value.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.