diff options
author | michelou <michelou@epfl.ch> | 2003-12-08 16:17:42 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2003-12-08 16:17:42 +0000 |
commit | 5e87c33e2aaec7a0c9bcd6f257a9a8e4f9664529 (patch) | |
tree | 941571431fef1a7273ea82fa2475b99d35ba66ca /sources/examples/sort1.scala | |
parent | 103888d458fe8cc0ba7c8000c9e2b66923a1b430 (diff) | |
download | scala-5e87c33e2aaec7a0c9bcd6f257a9a8e4f9664529.tar.gz scala-5e87c33e2aaec7a0c9bcd6f257a9a8e4f9664529.tar.bz2 scala-5e87c33e2aaec7a0c9bcd6f257a9a8e4f9664529.zip |
- adapted to current Scala version
Diffstat (limited to 'sources/examples/sort1.scala')
-rw-r--r-- | sources/examples/sort1.scala | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/examples/sort1.scala b/sources/examples/sort1.scala index 13a7b3e568..77fa36a052 100644 --- a/sources/examples/sort1.scala +++ b/sources/examples/sort1.scala @@ -1,3 +1,5 @@ +package examples; + object sorter { def sort(a: List[Int]): List[Int] = { @@ -14,7 +16,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 +} |