tldr/pages/common/scala.md

21 lines
350 B
Markdown
Raw Normal View History

2017-12-05 21:05:46 +03:00
# scala
2017-12-05 21:04:46 +03:00
2017-12-05 21:11:22 +03:00
> Scala application launcher and interactive interpreter.
> More information: <https://scala-lang.org>.
2017-12-05 21:04:46 +03:00
2017-12-06 19:43:07 +03:00
- Start a Scala interactive shell (REPL):
2017-12-05 21:04:46 +03:00
`scala`
2017-12-06 19:40:15 +03:00
- Execute a Scala script:
2017-12-05 21:04:46 +03:00
`scala {{script.scala}}`
- Execute a .jar program:
`scala {{filename.jar}}`
- Execute a single Scala command in the command line:
`scala -e {{command}}`