title: How do I build dynamic functions with javascript?
body: <p>I'm getting myself confused with all these languages! :)</p>
  
  <pre><code>// given this function
  var f = function(a,b) { return a == b; }
  
  // and these values for a
  var a = [1,2,3]
  
  // how do I make this array (a is replaced by its value)?
  var results = [
     function(b) { return 1 == b; },
     function(b) { return 2 == b; },
     function(b) { return 3 == b; }
  ]
  </code></pre>