title: How do I print a List of anything in Scala?
body: <p>At the moment I have a method that prints Ints</p>
  
  <pre><code>def printList(args: List[Int]): Unit = {
    args.foreach(println)
  }
  </code></pre>
  
  <p>How do I modify this so it is flexible enough to print a list of anything?</p>