Documentation for infix gcd assembled from the following pages:

Language documentation: Operators §

From Operators

(Operators) infix gcd §

multi sub infix:<gcd>($a$b --> Int:D)

Coerces both arguments to Int and returns the greatest common divisor. If one of its arguments is 0, the other is returned (when both arguments are 0, the operator returns 0).