title: How to append or prepend an element to a tuple in Scala
body: <p>I have a tuple and want to add an element without loosing type safety. This is what I want to achieve:</p>
  
  <pre><code>val tuple = ("", 1, 1f) // (String, Int, Float)
  
  val newTuple:(String, Int, Float, Double) = tuple :+ 1d
  </code></pre>