title: Array of procs or array of lambdas
body: <p>Is there a way to create an array of lambdas or an array of procs in ruby? I've been able to define arrays of each, but I have not been able to figure out the syntax for calling the lambdas/procs in the array.</p>
  
  <p>As a foolish made-up example, consider this:</p>
  
  <pre><code>a = [ 1, 2, 3, 4, 5, 6, 7, 8]
  b = [2, 3, 5, 7, 10]
  
  c = [
    Proc.new { |x| a.include? x },
    Proc.new { |x| true },
    Proc.new { |x| b.include? x }
  ]
  
  def things_checker(element, checks)
    z = 0
    checks.each do |check|
      p z
      break unless check(element)
      z = z + 1
    end
  end
  
  things_checker(3, c)
  </code></pre>
  
  <p>I can't figure out a way to get <code>check(element)</code> to not be a syntax error.</p>