- 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.
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- JavaScript修煉之道
- JavaScript 從入門到項目實踐(超值版)
- 劍指Offer(專項突破版):數據結構與算法名企面試題精講
- Android Development with Kotlin
- Learning AWS Lumberyard Game Development
- Python GUI Programming Cookbook
- Flux Architecture
- HTML5+CSS3+JavaScript 從入門到項目實踐(超值版)
- 邊玩邊學Scratch3.0少兒趣味編程
- 深度學習入門:基于Python的理論與實現
- 計算語言學導論
- 程序員的英語
- 算法訓練營:海量圖解+競賽刷題(入門篇)
- 零基礎入門Python數據分析與機器學習