diff options
Diffstat (limited to 'test/pending/run/reify_sort1.scala')
-rw-r--r-- | test/pending/run/reify_sort1.scala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/pending/run/reify_sort1.scala b/test/pending/run/reify_sort1.scala deleted file mode 100644 index 6fb3cc5895..0000000000 --- a/test/pending/run/reify_sort1.scala +++ /dev/null @@ -1,21 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.tools.reflect.Eval - -object Test extends App { - reify { - def sort(a: List[Int]): List[Int] = { - if (a.length < 2) - a - else { - val pivot = a(a.length / 2) - sort(a.filter(_ < pivot)) ::: - a.filter(_ == pivot) ::: - sort(a.filter(_ > pivot)) - } - } - - val xs = List(6, 2, 8, 5, 1) - println(xs) - println(sort(xs)) - }.eval -}
\ No newline at end of file |