Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#odersky-programming-in-scala-1ed #scala
Question
You can't reassign [vars or vals]
Answer
vals

Tags
#odersky-programming-in-scala-1ed #scala
Question
You can't reassign [vars or vals]
Answer
?

Tags
#odersky-programming-in-scala-1ed #scala
Question
You can't reassign [vars or vals]
Answer
vals
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
You can't reassign vals

Original toplevel document

First Steps in Scala
rintln function prints the passed string to the standard output, similar to System.out.println in Java. Step 2. Define some variables [link] Scala has two kinds of variables, vals and vars. A val is similar to a final variable in Java. <span>Once initialized, a val can never be reassigned. A var, by contrast, is similar to a non-final variable in Java. A var can be reassigned throughout its lifetime. Here's a val definition: scala> val msg = "Hello, world!&quo

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.