summaryrefslogtreecommitdiff
path: root/test/files/pos/sudoku.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-05-08 16:33:15 +0000
committerMartin Odersky <odersky@gmail.com>2009-05-08 16:33:15 +0000
commit14a631a5fec42d04d0723355a0b93e482b5e4662 (patch)
treef639c2a22e89e193b9abea391993ecfd4d5326ee /test/files/pos/sudoku.scala
parent2379eb4ebbd28c8892b50a1d9fa8a687099eea4d (diff)
downloadscala-14a631a5fec42d04d0723355a0b93e482b5e4662.tar.gz
scala-14a631a5fec42d04d0723355a0b93e482b5e4662.tar.bz2
scala-14a631a5fec42d04d0723355a0b93e482b5e4662.zip
massive new collections checkin.
Diffstat (limited to 'test/files/pos/sudoku.scala')
-rw-r--r--test/files/pos/sudoku.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/sudoku.scala b/test/files/pos/sudoku.scala
index 8f42e56264..9875b22cfd 100644
--- a/test/files/pos/sudoku.scala
+++ b/test/files/pos/sudoku.scala
@@ -2,7 +2,7 @@ object SudokuSolver extends Application {
// The board is represented by an array of strings (arrays of chars),
// held in a global variable m. The program begins by reading 9 lines
// of input to fill the board
- var m: Array[Array[Char]] = List.tabulate(9, (x: Int) => readLine.toArray).toArray
+ var m: Array[Array[Char]] = Array.tabulate(9)((x: Int) => readLine.toArray)
// For printing m, a method print is defined
def print = { println(""); m map (carr => println(new String(carr))) }