/ Published in: Ruby
prints the result of a boolean function evaluated in the block. 3 variables.
Expand |
Embed | Plain Text
def btab3() 2.times{|a| 2.times{|b| 2.times{|c| puts "#{a} #{b} #{c} | #{ yield([a,b,c])}" }}} end
You need to login to post a comment.
