1
import scala.reflect.{ClassTag, classTag}
2
import scala.reflect.runtime.universe._
3
import scala.tools.reflect.Eval
5
object Test extends App {
7
implicit def arrayWrapper[A : ClassTag](x: Array[A]) =
9
def sort(p: (A, A) => Boolean) = {
10
util.Sorting.stableSort(x, p); x
13
val x = Array(2, 3, 1, 4)
14
println("x = "+ x.sort((x: Int, y: Int) => x < y).toList)
b'\\ No newline at end of file'