Greatest common divisor: Difference between revisions

m
imported>Msicilia
imported>Msicilia
Line 3,709:
=={{header|Hoon}}==
 
<syntaxhighlight lang="haskellhoon">::
:: Greatest common divisor (gcd), Euclid's algorithm.
::
Line 3,720:
 
<pre>
An example of use in the `dojo` (assuming the gate is pinned as `gcd`):
> (gcd 123 36)
3
Anonymous user