- 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.
推薦閱讀
- UI圖標(biāo)創(chuàng)意設(shè)計(jì)
- Koa開(kāi)發(fā):入門(mén)、進(jìn)階與實(shí)戰(zhàn)
- Python自然語(yǔ)言處理(微課版)
- 精通Scrapy網(wǎng)絡(luò)爬蟲(chóng)
- 嚴(yán)密系統(tǒng)設(shè)計(jì):方法、趨勢(shì)與挑戰(zhàn)
- Python數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南(全彩)
- Django Design Patterns and Best Practices
- 深入實(shí)踐DDD:以DSL驅(qū)動(dòng)復(fù)雜軟件開(kāi)發(fā)
- Magento 2 Beginners Guide
- Mastering Apache Camel
- jQuery從入門(mén)到精通(微課精編版)
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- jQuery權(quán)威指南
- SFML Essentials