title: Using map to create a copy of an array (with generic type) results in error [Scala]
body: <p>I am trying to copy an array of generic type using maps.</p>
  
  <pre><code>class MaObj[T](val arr : Array[T])(implicit ordering : Ordering[T]) {
  
    val internalCopy : Array[T] = arr.map(e =&gt; e) //This line
  </code></pre>
  
  <p>But I run it gives an error saying</p>
  
  <pre><code>found   : scala.collection.mutable.ArraySeq[T]
   required: Array[T]
   Note: implicit value comparison is not applicable here because it comes after the application point and it lacks an explicit result type
  val internalCopy : Array[T] = arr.map(e =&gt; e)
  </code></pre>
  
  <p>I am not able to make sense of this.</p>