Skip to main content
Version: 1.0

expect

expect[T: TrivialRegisterPassable, //, expected_val: T](val: T) -> T

Provides information about expected (the most probable) value of val, which can be used by optimizers.

Notes: Only works with integer/boolean types.

Parameters:

Args:

  • val (T): The input value.

Returns:

T: The input value.