Recent Changes - Search:

Oktatás

* Programozás 2
  + feladatsor
  + C feladatsor
  + Python feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

* levelezősök
  + Adator. prog.
  + feladatsor
  + quick link

teaching assets


Félévek

* 2024/25/1
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Scala


[ edit | logout ]
[ sandbox | passwd ]

the REPL

#############################

Scala has an interactive shell. It's like the Python shell, but technically it's not an interpreter. Whenever you make something evaluate, it creates a temporary file, compiles it, and executes it. It happens behind the curtain, but it's good to know. So instead of "Scala interpreter", call it "the REPL" :)

  • The REPL has TAB completion! Type in "hello".to<TAB> and it will print the available options (toCharArray toLowerCase toString toUpperCase).
  • You can use it as a calculator. The results are assigned to variables that you can use for further calculations:
scala> 4 * 9 + 20
res0: Int = 56

scala> res0 + 4
res1: Int = 60

scala> res1 * 4
res2: Int = 240
Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2018 February 15, 15:48