From 5e87c33e2aaec7a0c9bcd6f257a9a8e4f9664529 Mon Sep 17 00:00:00 2001 From: michelou Date: Mon, 8 Dec 2003 16:17:42 +0000 Subject: - adapted to current Scala version --- sources/examples/sort2.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sources/examples/sort2.scala') diff --git a/sources/examples/sort2.scala b/sources/examples/sort2.scala index f143958471..67998bfb80 100644 --- a/sources/examples/sort2.scala +++ b/sources/examples/sort2.scala @@ -1,3 +1,5 @@ +package examples; + object sorter { def sort(a: List[Int]): List[Int] = { @@ -17,7 +19,7 @@ object sorter { def main(args: Array[String]) = { val xs = List(6, 2, 8, 5, 1); Console.println(xs); - Console.println(sort(xs)); + Console.println(sort(xs)) } -} \ No newline at end of file +} -- cgit v1.2.3