O'Reilly logo
  • Manfred Kipfelsberger thinks this is interesting:

// split with a String argument scala> "hello world".split(" ") res0: Array[java.lang.String] = Array(hello, world)

From

Cover of Scala Cookbook

Note

In the Scala Repl for 2.11.7 this also shows a resulting type of Array[String] (checked only under Windows)