Skip to main content

function

int

int[T: Intable](value: T) -> Int

Get the Int representation of the value.

Parameters:

  • T (Intable): The Intable type.

Args:

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

Returns:

The integral representation of the value.

int[T: IntableRaising](value: T) -> Int

Get the Int representation of the value.

Parameters:

  • T (IntableRaising): The Intable type.

Args:

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

Returns:

The integral representation of the value.

Raises:

If the type does not have an integral representation.