struct ModInt(MOD)
- ModInt(MOD)
- Struct
- Value
- Object
Defined in:
math/mint.crConstructors
Class Method Summary
Instance Method Summary
- #*(v)
- #*(m : self)
- #**(exponent : Int)
- #+(m : self)
- #+(v)
- #+ : self
- #-(m : self)
- #-(v)
- #- : self
- #/(v)
- #/(m : self)
- #//(v)
- #<(other)
- #<=(other)
- #==(m : Int)
- #==(m : ModInt(MOD2)) forall MOD2
- #>(other)
- #>=(other)
- #abs
- #abs2
-
#inspect(io : IO) : Nil
Appends this struct's name and instance variables names and values to the given IO.
- #inv
- #pred
- #succ
- #to_i64 : Int64
-
#to_s(io : IO) : Nil
Same as
#inspect(io)
. - #value : Int64
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
def inspect(io : IO) : Nil
#
Description copied from struct Struct
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"