- 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.
推薦閱讀
- Interactive Data Visualization with Python
- 程序員數(shù)學(xué):用Python學(xué)透線性代數(shù)和微積分
- Linux網(wǎng)絡(luò)程序設(shè)計(jì):基于龍芯平臺(tái)
- 深入淺出Android Jetpack
- Visual Basic程序設(shè)計(jì)教程
- 64位匯編語言的編程藝術(shù)
- Learning Python Design Patterns(Second Edition)
- C++程序設(shè)計(jì)基礎(chǔ)教程
- Instant Ext.NET Application Development
- ANSYS Fluent 二次開發(fā)指南
- JavaScript應(yīng)用開發(fā)實(shí)踐指南
- Python入門很輕松(微課超值版)
- C語言程序設(shè)計(jì)習(xí)題與實(shí)驗(yàn)指導(dǎo)
- OpenCV 3計(jì)算機(jī)視覺:Python語言實(shí)現(xiàn)(原書第2版)
- Magento 2 Beginners Guide