Greatest common divisor: Difference between revisions
→OCaml: simpler variant, avoids division by 0
(Dialects of BASIC moved to the BASIC section.) |
(→OCaml: simpler variant, avoids division by 0) |
||
Line 4,732:
=={{header|OCaml}}==
<syntaxhighlight lang="ocaml">let rec gcd a
▲ | r -> gcd1 b r</syntaxhighlight>
=== Built-in ===
|