require 'pp'

def acond(avalues,aconditions)
  avalues.map { |n| [n,aconditions.map { |blk| blk.call(n) }] }
end


an = [0, 2, 4, 7, 10, 25, 6]
ac = [
  proc { |number| number == 2},
  proc { |number| number == 5 or number == 6},
  proc { |number| number!=1}
]

pp acond(an,ac)

-- 
Posted via http://www.ruby-forum.com/.