This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| Example function which takes varargs | |
| */ | |
| def myfunc(name: String, others: String*) { // note the star after String | |
| println(s"$name") | |
| others.foreach(str => println(s" varag=$str") ) | |
| println(" ---") | |
| } |
NewerOlder