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 containingBoolableitems.
Args:
- iterable (
IterableType): The iterable to check.
Returns:
Bool: True if all elements in the iterable are truthy, False otherwise.