Mojo function
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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!