bkerby

Untitled

Sep 22nd, 2012
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. scala> def nthRow(n: Int, xs: List[Int]): List[Int] =
  2. | if (n == 1) xs
  3. <console>:11: error: type mismatch;
  4. found : Unit
  5. required: List[Int]
  6. if (n == 1) xs
  7. ^
Advertisement
Add Comment
Please, Sign In to add comment