Skip to main content
Log in

Mojo function

bool

bool(value: None) -> Bool

Get the bool representation of the None type.

Args:

  • value (None): The object to get the bool representation of.

Returns:

The bool representation of the object.

bool[T: Boolable, //](value: T) -> Bool

Get the bool representation of the object.

Parameters:

  • T (Boolable): The type of the object.

Args:

  • value (T): The object to get the bool representation of.

Returns:

The bool representation of the object.

Was this page helpful?