3 ms·
If you like "if guards", and want a non-whitespace delimited, strict, dynamically typed language, check out the Pure language: gcd a b = gcd (a-b) b if a>b
by GregBuchholz 9y ago
If you like "if guards", and want a non-whitespace delimited, strict, dynamically typed language, check out the Pure language:
gcd a b = gcd (a-b) b if a>b;
= gcd a (b-a) if a<b;
= a otherwise;
https://agraef.github.io/pure-lang/ https://agraef.github.io/pure-lang/