title: Scala implicit not working in foreach lambda
body: <p>I can't get the following code with the included implicit working. The variable ls contains a list of tuples like defined in the Tuple2Store implicit. My foreach lamda argument requires the members of the list to be instances of the class Store. So why does the implicit conversion not kick in?</p>
  
  <pre><code>  implicit def Tuple2Store(tuple: (Int, Option[Date], Option[String], Option[Date], Option[Boolean], Option[Boolean],
        Option[Boolean], Option[Boolean], Option[String])): Store =
        { new Store(tuple._1, tuple._2, tuple._3, tuple._4, tuple._5, tuple._6, tuple._7, tuple._8, tuple._9) }
  
    val entities = TableQuery[StoreTable]
    val query = for {
      c &lt;- entities if c.costCenterNumber === 60506
    } yield (c)
  
    val ls = query.list
  
    ls.foreach((s: Store) =&gt; println(s.toString))
  </code></pre>
  
  <p>Following error message is displayed:</p>
  
  <blockquote>
    <ul>
    <li>type mismatch; found : datamodel.Store => Unit required: ((Int, Option[java.sql.Date], Option[String], Option[java.sql.Date],
    Option[Boolean], Option[Boolean], Option[Boolean],     Option[Boolean],
    Option[String])) => ?</li>
    </ul>
  </blockquote>
  
  <p><strong>Edit:</strong>
  The following code leaves me with a List of Store instances in the ls variable... this is what I wanted to accomplish, but is there an easier way?</p>
  
  <pre><code>  implicit def Tuple2Store(tuple: (Int, Option[Date], Option[String], Option[Date], Option[Boolean], Option[Boolean],
        Option[Boolean], Option[Boolean], Option[String])): Store =
        { new Store(tuple._1, tuple._2, tuple._3, tuple._4, tuple._5, tuple._6, tuple._7, tuple._8, tuple._9) }
  
    val entities = TableQuery[StoreTable]
    val query = for {
      c &lt;- entities if c.costCenterNumber === 60506
    } yield (c)
  
    val ls = query.list.map { Tuple2Store }
  </code></pre>