PSSQ stand for Possibly Stupid Scala Question :)
Getting to know Scala a little bit, and in the obligatory Hello World example (code below) the arguments to the main function is an array of strings.
object HelloWorld
{
def main(args: Array[String]): Unit =
{
args.map((arg:String) => arg.toUpperCase());
printf("%s %s!", "Hello", "World");
}
}
In the example, I'm using the map()
function on the array. However, when I check the Scala API documentation, map()
isn't listed as one of the functions available for Array
. Is there some kind of magic going on, or am I missing something obvious in the API documentation?