concept REPL in category scala

appears as: REPL, The REPL, REPL
Get Programming with Scala

This is an excerpt from Manning's book Get Programming with Scala.

  • :load <path> interprets snippets of code from a file. Suppose you have started the REPL from a directory containing a file called Test.scala and with text println(1 + 2). You can interpret the instructions in the Test.scala file as follows:
  • scala> res0 + 39
    res1: Int = 42
    Figure 2.2: Analysis of the REPL’s interpretation of a function definition. The REPL identifies the function by its name, parameter, and return type.