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