#odersky-programming-in-scala-1ed #scala
Scala implicitly imports members of packages java.lang and scala , as
well as the members of a singleton object named Predef , into every Scala source
file.
If you want to change selection, open document below and click on "Move attachment"
Classes and Objects previous example. This
import statement allows you to use the method's simple name in the
rest of the file.[5] The body of the main method simply prints out each argument and
the checksum for the argument, separated by a colon.
Note
<span>Scala implicitly imports members of packages java.lang and scala, as
well as the members of a singleton object named Predef, into every Scala source
file. Predef, which resides in package scala, contains many useful
methods. For example, when you say println in a Scala source file,
you're actually invoking println on Predef. (Predef.print Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details