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
greetStrings( 0 ) = "Hello" 

will be transformed into:

 [...]
Answer
greetStrings.update( 0 , "Hello" )

Tags
#odersky-programming-in-scala-1ed #scala
Question
greetStrings( 0 ) = "Hello" 

will be transformed into:

 [...]
Answer
?

Tags
#odersky-programming-in-scala-1ed #scala
Question
greetStrings( 0 ) = "Hello" 

will be transformed into:

 [...]
Answer
greetStrings.update( 0 , "Hello" )
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
greetStrings( 0 ) = "Hello" will be transformed into: greetStrings.update( 0 , "Hello" )

Original toplevel document

Next Steps in Scala
parentheses and one or more arguments have been applied, the compiler will transform that into an invocation of an update method that takes the arguments in parentheses as well as the object to the right of the equals sign. For example: <span>greetStrings(0) = "Hello" will be transformed into: greetStrings.update(0, "Hello") Thus, the following is semantically equivalent to the code in Listing 3.1: val greetStrings = new Array[String](3) greetStrings.update(0, "Hello") greetStrings.updat

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.