types

Types

Type representing a number, which can be either an integer or a float.

pub type Number {
  Int(Int)
  Float(Float)
}

Constructors

  • Int(Int)
  • Float(Float)

Values

pub fn describe_number(number: Number) -> String

Function to describe a number as a string.

Search Document