- 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.
推薦閱讀
- Learning Scala Programming
- PHP基礎(chǔ)案例教程
- Python Geospatial Development(Second Edition)
- JSP開發(fā)案例教程
- Python 3破冰人工智能:從入門到實(shí)戰(zhàn)
- SQL Server 2012數(shù)據(jù)庫管理與開發(fā)項(xiàng)目教程
- Learning PHP 7
- Django 3.0入門與實(shí)踐
- Web Developer's Reference Guide
- Penetration Testing with the Bash shell
- H5+移動(dòng)營銷設(shè)計(jì)寶典
- Android初級(jí)應(yīng)用開發(fā)
- HTML5/CSS3/JavaScript技術(shù)大全
- Flutter for Beginners
- 邊做邊學(xué)深度強(qiáng)化學(xué)習(xí):PyTorch程序設(shè)計(jì)實(shí)踐