Greatest common divisor: Difference between revisions

Content added Content deleted
imported>Msicilia
imported>Msicilia
Line 3,709: Line 3,709:
=={{header|Hoon}}==
=={{header|Hoon}}==


<syntaxhighlight lang="haskell">::
<syntaxhighlight lang="hoon">::
:: Greatest common divisor (gcd), Euclid's algorithm.
:: Greatest common divisor (gcd), Euclid's algorithm.
::
::
Line 3,720: Line 3,720:


<pre>
<pre>
An example of use in the dojo (assuming the gate is pinned as gcd):
An example of use in `dojo` (assuming the gate is pinned as `gcd`):
> (gcd 123 36)
> (gcd 123 36)
3
3