val hash : t ‑> int
pow base exponent
returns base
raised to the power of exponent
.
pow a b = a^b
for positive integers a
and b
.
Raises Invalid_argument
if a = b = 0
or b
< 0.
floor_div a n
is integer division rounding towards negative infinity.
It satisfies a = m * floor_div a n + rem a n
.
val random : int ‑> t random_gen
val random_small : t random_gen
val random_range : int ‑> int ‑> t random_gen
val to_string : t ‑> string
Return the string representation of its argument, in signed decimal.
range_by ~step i j
iterates on integers from i
to j
included,
where the difference between successive elements is step
.
Use a negative step
for a decreasing list.
step=0
.range i j
iterates on integers from i
to j
included . It works
both for decreasing and increasing ranges.
Like range but the second bound is excluded.
For instance range' 0 5 = Sequence.of_list [0;1;2;3;4]
.
module Infix : sig ... end
include module type of Infix