- Learning Scala Programming
- Vikash Sharma
- 126字
- 2021-06-30 19:07:47
Scala REPL
There is more than one way of interacting with Scala. One of them is using Scala Interpreter (REPL). To run Scala REPL using SBT, just give the following command in the command prompt/terminal:
sbt console
This command will run Scala REPL.
To run Scala REPL using Scala binary, perform the following:
- Go to https://www.scala-lang.org/download/.
- Download the latest Scala archive.
- Extract the archive to any directory.
- Set the directory path as environment variables as shown in https://www.scala-lang.org/download/install.html.
- Try running the scala command, it should look something like this:

If so, congrats. You've done it. Now it's asking you to type any expression. You may try typing any expression. Try anything, like 1 + 2 or 1 + "2". REPL is your playground to learn Scala.
推薦閱讀
- Visual Basic程序開發(fā)(學(xué)習(xí)筆記)
- React Native Cookbook
- DevOps入門與實(shí)踐
- 教孩子學(xué)編程:C++入門圖解
- Python機(jī)器學(xué)習(xí)基礎(chǔ)教程
- Node.js:來一打 C++ 擴(kuò)展
- Java語言程序設(shè)計(jì)教程
- 零基礎(chǔ)學(xué)HTML+CSS
- HTML+CSS+JavaScript網(wǎng)頁制作:從入門到精通(第4版)
- Mudbox 2013 Cookbook
- 虛擬現(xiàn)實(shí):引領(lǐng)未來的人機(jī)交互革命
- Python全棧開發(fā):數(shù)據(jù)分析
- The Python Apprentice
- jQuery權(quán)威指南
- 瘋狂Ajax講義(第3版)