Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. val lines = Source
  2. .fromResource("doc-topics-new.txt")
  3. .getLines
  4. .toList
  5. .drop(1) match {
  6. case x :: xs => x.split(" ").drop(2).mkString(" ") :: xs
  7. }
  8.  
  9. Warning:(81, 14) match may not be exhaustive.
  10. It would fail on the following input: Nil
  11. .drop(1) match {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement