Skip to main content

Mojo module

bool

Implements the Bool class.

These are Mojo built-ins, so you don't need to import them.

Structs

  • Bool: The primitive Bool scalar value used in Mojo.

Traits

  • Boolable: The Boolable trait describes a type that can be explicitly converted to a Bool or evaluated as a boolean expression in if or while conditions.

Functions

  • all: Checks if all elements in the list are truthy.
  • any: Checks if all elements in the list are truthy.

Was this page helpful?