Advanced Search
Stay Signed In
Don't have an account yet?
Start a Free Trial
Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Scala for the Impatient
Here is a quick-and-dirty way of reading all whitespace-separated tokens in a source:
val tokens = source.mkString.split("\\s+")
You are currently reading a PREVIEW of this book.
Get instant access to over $1 million worth of books and videos.