summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-11-09 22:22:45 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-11-09 22:22:45 +0200
commit5fe75110fe3e9d22205cba089d546e91b1156846 (patch)
tree46ccd6648941e4df2aff6f27547fb0c22130a8de
parent22c09056b2a3b870a468f3d0b896f2f913a059e7 (diff)
downloadgcd-5fe75110fe3e9d22205cba089d546e91b1156846.tar.gz
F*ck you
-rwxr-xr-xgcd.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcd.rb b/gcd.rb
index 0eefe8a..1fd7d9f 100755
--- a/gcd.rb
+++ b/gcd.rb
@@ -8,7 +8,6 @@ def gcd2 a, b
end
end
-# http://railspikes.com/2008/8/11/understanding-map-and-reduce
def gcdn ns
ns.reduce{ |a, b| gcd2 a, b }
end