std.int

The signed 64-bit integer type.

Values

let additive : {
    semigroup : std.semigroup.Semigroup Int,
    monoid : std.monoid.Monoid Int,
    group : std.group.Group Int
}

let multiplicative : { semigroup : std.semigroup.Semigroup Int, monoid : std.monoid.Monoid Int }

let eq : std.cmp.Eq Int

Eq a defines equality (==) on a

let ord : std.cmp.Ord Int

Ord a defines an ordering on a

let num : std.num.Num Int

The basic operation on numbers. Defined for both the primitive type Int and Float

let show : std.show.Show Int

Show a represents a conversion function from a to a readable string.

let min_value : Int

let max_value : Int

let from_str_radix : String -> Int -> std.types.Result () Int

let count_ones : Int -> Int

let count_zeros : Int -> Int

let leading_zeros : Int -> Int

let trailing_zeros : Int -> Int

let rotate_left : Int -> Int -> Int

let rotate_right : Int -> Int -> Int

let swap_bytes : Int -> Int

let from_be : Int -> Int

let from_le : Int -> Int

let to_be : Int -> Int

let to_le : Int -> Int

let pow : Int -> Int -> Int

let abs : Int -> Int

let signum : Int -> Int

let is_positive : Int -> std.types.Bool

let is_negative : Int -> std.types.Bool

let from_byte : Byte -> Int

let from_float : Float -> Int

let parse : String -> std.types.Result () Int