Ramsey's theorem: Difference between revisions

m
→‎{{header|Sidef}}: modified the code to work with Sidef 2.30
m (→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations.)
m (→‎{{header|Sidef}}: modified the code to work with Sidef 2.30)
Line 807:
a.each {|row| say row.join(' ') }
 
@(0..16 -> combination).combinations(4).each { |quartet|
var links = quartet.combinationcombinations(2).map{|p| a.dig(p...) }.sum
((0 < links) && (links < 6)) || die "Bogus!"
}
2,747

edits