Skip to content

Instantly share code, notes, and snippets.

@RCura
Created February 13, 2013 15:19
Show Gist options
  • Select an option

  • Save RCura/4945314 to your computer and use it in GitHub Desktop.

Select an option

Save RCura/4945314 to your computer and use it in GitHub Desktop.
val abc = scala.collection.mutable.ListBuffer[Double]
abc += 45
abc += 87
def f(l: List[_]) = l
f(abc)
implicit def arrayToList[T](a:scala.collection.mutable.ListBuffer[T]): List[T] = a.toList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment