Question

There are some "global" functions in scala, for example:

print
println
classOf
format

The first 2 are actually Console's singleton methods, the last comes from java.lang.String.format.

I believe there are some more, may somebody list all of them, or point out where I can find corresponding API documentation ?

Was it helpful?

Solution

They're all defined in the scala.Predef object.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top