From: Rudolf Polzer Date: 2003-07-30T11:36:49+09:00 Subject: Hm... nice, Euclid is a one-liner a, b = b, a % b while b != 0 That's what I like about Ruby. The Perl equivalent is, of course: ($a, $b) = ($b, $a % $b) while $b; Is there anywhere such a collection of mathematical algorithms in Ruby? -- "The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers." -- Bill Gates from The Road Ahead, p265