Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

* Scripting Languages
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* aktuális (2023/24/2)
* 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