- Kotlin Programming By Example
- Iyanu Adelekan
- 173字
- 2021-08-27 20:00:05
Using the REPL
REPL is an acronym that stands for Read–Eval–Print Loop. An REPL is an interactive shell environment in which programs can be executed with immediate results given. The interactive shell environment can be invoked by running the kotlinc command without any arguments.
If the REPL is successfully started, a welcome message will be printed in your terminal followed by >>> on the next line, alerting us that the REPL is awaiting input. Now you can type in code within the terminal, as you would in any text editor, and get immediate feedback from the REPL. This is demonstrated in the following screenshot:

In the preceding screenshot, the 1 and 2 integers are assigned to x and y, respectively. The sum of x and y is stored in a new z variable and the value held by z is printed to the display with the print() function.
- Python概率統(tǒng)計
- 零基礎搭建量化投資系統(tǒng):以Python為工具
- Spring 5企業(yè)級開發(fā)實戰(zhàn)
- Docker進階與實戰(zhàn)
- Mastering QGIS
- Designing Hyper-V Solutions
- Practical Windows Forensics
- Python Network Programming Cookbook(Second Edition)
- Easy Web Development with WaveMaker
- 軟件架構:Python語言實現(xiàn)
- 飛槳PaddlePaddle深度學習實戰(zhàn)
- Swift語言實戰(zhàn)精講
- Learning Vaadin 7(Second Edition)
- iOS開發(fā)實戰(zhàn):從入門到上架App Store(第2版) (移動開發(fā)叢書)
- 平面設計經典案例教程:CorelDRAW X6