We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019e2f3 commit bda7b04Copy full SHA for bda7b04
man/fcase.Rd
@@ -61,6 +61,7 @@ fcase(
61
)
62
63
# fcase can be used for recursion, unlike fifelse
64
+# Recursive function to calculate the Greatest Common Divisor
65
gcd_dt = function(x,y) {
66
r = x\%\%y
67
fcase(!r, y, r, gcd_dt(x, y)) # Recursive call must be in the last when-value pair
0 commit comments