Hi,

At Sun, 7 Dec 2008 21:14:39 +0900,
Robert Klemme wrote in [ruby-core:20406]:
> test = [2,4,8]
p test.combination(2).all? {|x,y| x % 2 == y % 2}
p test.combination(2).any? {|x,y| (x - y).abs == 4}
p !test.combination(2).any? {|x,y| (x * y) % 3 == 0}

-- 
Nobu Nakada