title: How to use an implicit at runtime?
body: <p>First, this is more for experimentation and learning at this point and I know that I can just pass the parameter in directly. </p>
  
  <pre><code>def eval(xs: List[Int], message: =&gt; String) = {
    xs.foreach{x=&gt;
      implicit val z = x
      println(message)
    }
  }
  
  def test()(implicit x : Int) = {
    if(x == 1) "1" else "2"
  }
  
  eval(List(1, 2), test)//error: could not find implicit value for parameter x
  </code></pre>
  
  <p>Is this even possible and I am just not using implicits properly for the situation? Or is it not possible at all?</p>